Re: Getting the SHA1 Hask of a certificate public key
- From: "Mike B" <mbrindley@xxxxxxxxx>
- Date: Fri, 16 Dec 2005 23:47:26 +0200
"lelteto" <lelteto@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>
> 1. WHY do you need the SHA-1 hash of the public key?
>
>2. If you plan to use the SHA-1 hash in YOUR (proprietary) .....
>
Don't make assumptions about MY proprietary software, my friend!
Take a look at the PKWARE appnote and you will understand that MD5 is not
the only hash used in everyday Crypto, and in particular, for supporting
certificate based encryption in zip archives. (As implemented by RSA BSAFE
cryptographic library).
Your hashing recommendations will not work.
In fact the SHA1 hash is quite straightforward to get (as I discovered
eventually) by passing the CERT_KEY_IDENTIFIER_PROP_ID property constant to
the CertGetCertificateContextProperty function.
My concern is that this may not work for all certificates.
regards
Mike
.
- Follow-Ups:
- Re: Getting the SHA1 Hask of a certificate public key
- From: John Banes
- Re: Getting the SHA1 Hask of a certificate public key
- References:
- Getting the SHA1 Hask of a certificate public key
- From: Mike B
- Getting the SHA1 Hask of a certificate public key
- Prev by Date: Re: Getting the SHA1 Hask of a certificate public key
- Next by Date: Re: HOWTO Validate security privileges
- Previous by thread: Re: Getting the SHA1 Hask of a certificate public key
- Next by thread: Re: Getting the SHA1 Hask of a certificate public key
- Index(es):
Relevant Pages
|