hapijs / jwt

JWT (JSON Web Token) Authentication
Other
36 stars 25 forks source link

Fix serialNumber and remove workarounds #34

Closed devinstewart closed 3 years ago

devinstewart commented 3 years ago

According to node-forge the serialNumber of an X.509 Cert should be the hex encoded value of an ASN.1 INTEGER.

used the code:

cert.serialNumber = parseInt(Cryptiles.randomDigits(15)).toString(16);

to accomplish. Test no longer are flaky, so previous changes to deal with that are removed.