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 ? From: [EMAIL PROTECTED] To: openssl-users@openssl.org Subject: RE: Get public key hash/Certificate thumbprint Date: Thu, 13 Sep 2007 20:30:44 -0400 Here is some code to help you get started with creating a finger print. X509 *tempCert; EVP_MD *tempDigest; unsigned char tempFingerprint[EVP_MAX_MD_SIZE]; unsigned int tempFingerprintLen; tempCert = SSL_get_peer_certificate( sslTemp ); tempDigest = (EVP_MD*)EVP_sha1( ); whiteFingerprintLen = EVP_MD_size( whiteDigest ); if ( create_cert_digest( tempCert, tempDigest, tempFingerprint, &tempFingerprintLen ) <= 0) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of k b Sent: Thursday, September 13, 2007 7:06 PM To: openssl-users@openssl.org Subject: Get public key hash/Certificate thumbprint Hi, i'm interested in getting the certificate thumbprint, how do i get it from a x509 structure ? is the thumbprint the public key hash. if so is there an easier way to getting it, other than first getting the public key and then hashing it. thanks any info would be appreciated ! Kunal More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. Get more! _________________________________________________________________ Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2