If a serial number file contains the 16-byte hex string sometimes you 
will get 16-byte and sometimes 17-byte serial number in the certificate 
depending on whether the sign bit is set or not.

1. Example of 16-byte hex number producing 16-byte serial:

47E9EA236B1E010F203BF76A8A7B3B5B

results in:

47:E9:EA:23:6B:1E:01:0F:20:3B:F7:6A:8A:7B:3B:5B

2. Example of 16-byte hex number producing 17-byte serial:

8A7B3B5B47E9EA236B1E010F203BF76A

results in:

00:8A:7B:3B:5B:47:E9:EA:23:6B:1E:01:0F:20:3B:F7:6A
^^

To me this looks wrong.

Regards,
Igor Levicki


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to