Re: Trusted Certificates
From: Michel Gallant (neutron_at_istar.ca)
Date: 04/27/04
- Next message: Michel Gallant: "Cert issuer verification: CryptoAPI vs Java"
- Previous message: David Cross [MS]: "Re: Modifying a cert template ?"
- In reply to: Sandi: "Re: Trusted Certificates"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: Trusted Certificates"
- Reply: anonymous_at_discussions.microsoft.com: "Re: Trusted Certificates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 27 Apr 2004 08:42:28 -0400
You can use CertFindCertificateInStore() with
dwFindType=CERT_PUBLIC_KEY_INFO
for this.
Note that the "PublicKey" blob in the CERT_PUBLIC_KEY_INFO struct is an encoded
public key (RSAPublicKey format).
If you need to understand more about the various possible "public key" formats see:
http://www.jensign.com/JavaScience/dotnet/JKeyNet
Of course you can store entire certificates (e.g. SignedData messages often do this).
However, if you are manually verifying (instead of letting the local security manager verify trust)
you MUST manually check if the issuer is in your trusted cert stores (no matter whether
you use CryptoAPI, Java security etc..).
- Mitch Gallant
MVP Security
"Sandi" <anonymous@discussions.microsoft.com> wrote in message
news:4a7e01c42c13$fe84bfd0$a301280a@phx.gbl...
> Hi..
> Thankyou
> thats true if I have the certificate. But I have only the
> public key of the certificate, which I store in the
> document.
>
> Can we store the whole certificate without the private
> key in a document and later retreive that for later
> varification purpose.?
>
> Regards
> Sandi
>
>
- Next message: Michel Gallant: "Cert issuer verification: CryptoAPI vs Java"
- Previous message: David Cross [MS]: "Re: Modifying a cert template ?"
- In reply to: Sandi: "Re: Trusted Certificates"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: Trusted Certificates"
- Reply: anonymous_at_discussions.microsoft.com: "Re: Trusted Certificates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|