Finding Certificate by MD5 hash
From: Craig (anonymous_at_discussions.microsoft.com)
Date: 11/05/04
- Next message: Wahaj: "Smart Card using T1 or T0 Commands with Datakey"
- Previous message: Peter Kuschak: "how to change security policy setting programmatically?"
- Next in thread: Dan Griffin: "Re: Finding Certificate by MD5 hash"
- Reply: Dan Griffin: "Re: Finding Certificate by MD5 hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 4 Nov 2004 16:27:26 -0800
Hi,
I am searching for a certificate by the MD5-hashed public
key, but it isn't finding the certificate. Should I be
creating an MD5 hash of the Public Key Info or of some
other Public Key data?
This is what I am doing:
When creating the MD5-hash, I get the CERT_PUBLIC_KEY_INFO
from the certificate. I then call CryptHashPublicKeyInfo
to create an MD5 hash of this Public Key Info.
At the end that has to search for the certificate, I read
in this MD5-Hash and store to a CRYPT_HASH_BLOB. I then
call CertFindCertificateInStore passing in the
CRYPT_HASH_BLOB and use the CERT_FIND_PUBKEY_MD5_HASH flag.
Thanks,
Craig.
- Next message: Wahaj: "Smart Card using T1 or T0 Commands with Datakey"
- Previous message: Peter Kuschak: "how to change security policy setting programmatically?"
- Next in thread: Dan Griffin: "Re: Finding Certificate by MD5 hash"
- Reply: Dan Griffin: "Re: Finding Certificate by MD5 hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|