micromdm / scep

Go SCEP server
MIT License
310 stars 121 forks source link

ensure serial hex is written to index file consistently lower case #200

Closed antwacky closed 1 year ago

antwacky commented 2 years ago

Certificate serial hex is lowercase, whereas currently the serial hex is written to the database in uppercase.

Openssl doesn't like this when attempting to revoke a certificate, as the uppercase serial hex in the database does not match the lower case serial hex in the certificate.

This patch ensures that lower case serial hex is used consistently when writing to the database.

jessepeterson commented 1 year ago

@pagey101 did you find an alternate workaround for this issue? Curious why you closed :)