SChannel problems
From: Jan Nitecki (JanNitecki_at_discussions.microsoft.com)
Date: 06/25/04
- Next message: Viktor: "RE: Windows XP is not locked when smart card is removed"
- Previous message: Raj: "RE: Retrieving Logon Date and Time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Jun 2004 08:43:21 -0700
I've written sometimes back application using SChannel for SSL layer. Right now I was reviewing code for introducing additional security checks and I found few problems, which I cannot solve alone.
1) While creating SChannel credentials (AcquireCredentialsHandle) it is possible to supply certificates of trusted CA's, but what is sent to client in certificate request message is the union of supplied certificates and those in trusted root store. I would like to know how to force schannel to send only certificates supplied by me.
2) Because of first problem certificate accepted by SChannel - may be one of my ones or some other which I don't want to trust (i.e. Verisign). I would like get full chain of client certificate, but through QueryContextAttributes I can get only end certificate - so I don't know what is root CA for it (it could be multiple levels of trust - so issuer of end certificate is not top level certification authority). Building chain thorugh CertGetCertificateChain succeedes only if intermediate CA certificates are already stored on server.
In most of the cases chain of client certificate is supplied only as part of handshake so chain cannot be build and manual verification fails.
There is article on MSDN giving steps which are required for manual certificate validation, but it doen't give any clue how to achieve that.
So quick summary of problems is:
1) How to send only arbitrary list of trusted CA's to SSL client.
2) How to build client certificate chain from SSL Content where initially only top level CA is stored locally.
I'm stack on those problems for more than a week and I start trusting that they are unresolvable, but I'm still hoping that someone can help me.
- Next message: Viktor: "RE: Windows XP is not locked when smart card is removed"
- Previous message: Raj: "RE: Retrieving Logon Date and Time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|