[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-cryptoapi
Subject: Re: Retrieving only certificates with private keys
From: Joe Steele <steele () ADOBE ! COM>
Date: 2001-11-26 17:34:40
[Download RAW message or body]
Hello Antônio,
What is the error code returned? Are you passing the parameters correctly?
This seems to work properly on my system. If
CertGetCertificateContextProperty returns non-zero, then some private key
exists. I am not verifying the key type currently, but if a private key
exists you should be able to do that.
Joe Steele
-----Original Message-----
From: Microsoft Cryptographic API
[mailto:CryptoAPI@DISCUSS.MICROSOFT.COM]On Behalf Of Antônio Césa da
Silveira Jr.
Sent: Thursday, November 22, 2001 3:53 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: REtrieving only certificates with private keys
Hello all.
I am retrieving current user certificates in a list, using
CertEnumCertificatesInStore. I retrieve all certificates, but i want
to g=
et
only the certificates that have private keys associated.
I have tried use CertGetCertificateContextProperty with
CERT_KEY_PROV_INFO_PROP_ID option and after
verified if pKeyInfo.dwKeySpec =3D AT_SIGNATURE , but this don=B4t
have w=
orked.
Somebody have any sugestions for how to do this ??
Thanks in advance.
------------------------------------------
Esta mensagem foi enviada pelo Web Mail da
GLOBALITE - Florianopolis - BR
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic