Hello,

I am able to generate an MD5 fingerprint with the following command.

openssl x509 -in user.pem -fingerprint -md5 -noout

This fingerprint matches the fingerprint displayed by Thunderbird/Firefox.

I am trying to generate an MD5 using a hash function in PHP,
http://nl2.php.net/manual/en/function.openssl-digest.php

The results I am getting from the PHP function are not the same as using the
other methods.  I'm sure I'm not putting the right data into the hash
function.

Should I be hashing the entire contents of the PEM file, only part, or is
there additional data I need to add?

Thank you,

Matt

Reply via email to