Jan Nitecki
12/8/2002 8:44:00 AM
Hello,
I just trying to port one of my old client components
from Win32 to .NET. In my scenario client component is
connecting to HTTP server with client authentication and
also validating if server certificate is issued by
specific Certification Authority.
For client authentication I found that I can use
ClientCertificaties property, but it doesn't allow me to
specify certificate which is already in trusted store
X509Certificate has no such constructor - only solution I
found is use unmanaged code to get handle of certificate
from store and pass it to constructor of X509Certificate.
Is it any more smart way which doesn't require use of
unmanaged code, but allows to keep certificate in Windows
Certificate Store?
Validating server certificate problem is even worse - I
cannot set list of trusted CA's (probably they are taken
from Trusted CA store) or even get information about
server certificate after connection is established. How
can I do that?
Very important for me is to have the solution fully
managed - otherwise I can simply use old ActiveX component.
Best regards,
Janek