Oct 15, 2010 12:04 AM|sedge.rev|LINK
I'm trying to receive a Client Certificate in a Web Service and having some problems.
Dim cert As X509Certificate = X509Certificate.CreateFromCertFile("C:\cert.cer")
Dim hw As String = _ws.HelloWorld
The certificate seems to be correclty loading and added to the client.
The client connects to the server with HTTPS.
Public Function HelloWorld() As String
Dim cert As HttpClientCertificate = Me.Context.Request.ClientCertificate
Return "Hello World"
cert.IsPresent is false and all certificate fields are empty.
IIS is configured to Accept Client Certificates.
Reproduced in two environments:
- Windows 7 x64, IIS 7, VS 2008, .NET 3.5
- XP x86, IIS 5, VS 2008, .NET 3.5
Always in the Web Service the Client Certificate is not proesent. I haven't been able to find any other configuration I should do. Can anyone help?