Hi,
I have been trying to generate the value of the subject key identifier but
am getting conflicting results:

RFC5280 section 4.2.1.2
<http://tools.ietf.org/html/rfc5280#section-4.2.1.2>states that the
subject key id is the sha1 hash of the public key.
But when I do the following I get different results:

1. openssl rsa -pubout -in my.key.pem | openssl sha1 -c
Result: b0:83:be:ad:72:af:fd:25:ef:4b:dc:b2:b0:26:9c:54:24:de:13:c2

2. openssl x509 -inform der -in my.cer -text
Result: C5:C1:98:9F:22:2E:13:25:31:E7:15:7C:2F:E2:C9:9D:45:94:56:D7

Why this discrepancy? am I doing something wrong?

Note: The cert is an end entity certificate

Regards,
Tushar

Reply via email to