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: [email protected]
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 LiveT
HotmailR. NOW with 5GB storage. Get more!
<http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migrati
on_HM_mini_5G_0907> 

Reply via email to