|
Rank: Newbie Groups: Member
Joined: 3/19/2019 Posts: 1
|
The NeedClientCertificate event provides only the host name and port as parameters. How can I get the list of Distinguished CA names trusted by the server? This is part of the client certificate request sent by the server.
Also, do you have an example of how to handle the event properly in a browser context? That would include the following:
Upon receiving the Server Hello containing the Client Certificate request & list of Distinguished CA names, the client will perform the following steps: The client uses the CA list available in the SERVER HELLO to determine the mutually trusted CA certificates. The client will then determine the Client Certificates that have been issued by the mutually trusted Certification Authorities. The client will then present the client certificate list to the user so that they can select a certificate to be sent to the user.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
We will add a TrustedAuthorities property to the NeedClientCertificateEventArgs class in our next build. Note that:
1. IIS by default does not send CA name list. You can set the following registry key to instruct IIS to send this list.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\SendTrustedIssuerList=1
2. This property will be of type byte[][]. Each item is a byte array which is the distinguished name in DER encoded format. You will need a ANS1 decoder to decode this byte string and extra whatever information you are interested.
We do not have examples for searching for mutually trusted certificated authorities though. So you may want to search online for such code.
We will reply here again when the new build is available.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
This is just to let you know that we have posted a new build that added NeedClientCertificateEventArgs.TrustedAuthorities property. You can download the new build from our download page. Please take a look and let us know how it goes.
Thanks!
|
|