Oscar So
2006-04-04 05:07:14 UTC
Hi,
I know that to calculate the fingerprint of an x509 certificate is to hash
(SHA1 and MD5)
the PEM format of an x509 certificate.
However, I am not sure if I should hash the whole PEM file or leave the
header and footer alone. For example, should I leave the header "-----BEGIN
CERTIFICATE-----" and
footer "-----END CERTIFICATE-----" alone, and then just hash anything in
between ?
I am having trouble trying to figure out a way to compute the hash value.
I tried so many things!
Thanks,
Oscar
I know that to calculate the fingerprint of an x509 certificate is to hash
(SHA1 and MD5)
the PEM format of an x509 certificate.
However, I am not sure if I should hash the whole PEM file or leave the
header and footer alone. For example, should I leave the header "-----BEGIN
CERTIFICATE-----" and
footer "-----END CERTIFICATE-----" alone, and then just hash anything in
between ?
I am having trouble trying to figure out a way to compute the hash value.
I tried so many things!
Thanks,
Oscar