For test purposes my asp.net app loads a user certificate that is
stored locally on the server the certificate serial number is not
hyphen delimited. The same certificate, when used for user
authentication purposes in an HTTPS request, does have a hyphen
delimited serial number - at least that is what the application log
indicates.
When I view the cert the serial number is space delimited. Any ideas
why the cryptography apis return a serial number with/without hyphens.
Is the format of the serial number predictable?
Joe Kaplan (MVP - ADSI) - 26 Apr 2006 14:03 GMT
I'm pretty sure that the certificate is represented in a binary format in
the certificate, so what you are seeing are just different string
representations of the underlying byte array. Some separate the hex
characters with spaces and some with dashes. The data should be the same
though.
Joe K.
> For test purposes my asp.net app loads a user certificate that is
> stored locally on the server the certificate serial number is not
[quoted text clipped - 6 lines]
> why the cryptography apis return a serial number with/without hyphens.
> Is the format of the serial number predictable?