On Thu, Sep 13, 2007, k b wrote: > > Thanks, for the inputs. > But theres a problem considering SHA1 isn't correct the cert could be sha256. > > is there a way the X509 has a fn that would return the cert thumbprint. > > and even before that is the cert thumbprint same as public key hash ? >
You'll have to define what "thumbprint" means. In web browsers and the 'x509' utility it is the hash of the whole encoding which X509_digest() returns though it is sometimes called "fingerprint" too. The digest used is not necessarily the same one used in the certificate and is typically SHA1 or MD5 and is specified in the function. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
