William Bardwell
2004-05-21 13:49:32 UTC
How do I get at the list of acceptable client certificate authorities
(for a client certificate to be sent to an SSL server when establishing
the connection)?
WinInet lets you set the client certificate to be used, using
InternetSetOption(INTERNET_OPTION_CLIENT_CERT_CONTEXT), but
I need to know what certificate authorities the client certificate
can be signed by, so that I can filter the list of possible
certificates, and only choose or offer valid ones. (WinInet
does this itself in InternetErrorDlg, but I want to be able
to do it myself.) Is there a way to do this with WinInet?
So, I can't find anyway to do that in WinInet, so I was thinking
that maybe I could just make an extra connection to the SSL server
with schannel and get the acceptable certificate authority info from
that, but that is the most impenetrable API ever...So, does anyone
know how to get that info. out of schannel? (I am not finding
much in the way of samples of basic use of schannel to make a
connection, so if anyone knows of a good one, that would be helpful
too...) Am I supposed to use
QueryCredentialsAttributes(SECPKG_ATTR_ISSUER_LIST_EX)?
Thanks.
William Bardwell
***@curl.com
aka
***@nospam.nospam
(for a client certificate to be sent to an SSL server when establishing
the connection)?
WinInet lets you set the client certificate to be used, using
InternetSetOption(INTERNET_OPTION_CLIENT_CERT_CONTEXT), but
I need to know what certificate authorities the client certificate
can be signed by, so that I can filter the list of possible
certificates, and only choose or offer valid ones. (WinInet
does this itself in InternetErrorDlg, but I want to be able
to do it myself.) Is there a way to do this with WinInet?
So, I can't find anyway to do that in WinInet, so I was thinking
that maybe I could just make an extra connection to the SSL server
with schannel and get the acceptable certificate authority info from
that, but that is the most impenetrable API ever...So, does anyone
know how to get that info. out of schannel? (I am not finding
much in the way of samples of basic use of schannel to make a
connection, so if anyone knows of a good one, that would be helpful
too...) Am I supposed to use
QueryCredentialsAttributes(SECPKG_ATTR_ISSUER_LIST_EX)?
Thanks.
William Bardwell
***@curl.com
aka
***@nospam.nospam