问题
I'm integrating with a customer for which I'm implementing 2 way ssl, meaning I'm attaching a client certificate to outgoing HTTP requests.
My calling client app is written in C# and is hosted in IIS, while the customer is not using IIS, I think they are using something that's called Layer 7.
I add the client certificate to the request in code:
request.ClientCertificates.Add(clientCertificate);
Now if I'm sending the HTTP request to the customer with the client certificate, the request fails, the client certificate is not added to the request.
However, if before invoking the request to the customer, I'm invoking a request to a dummy application I created and hosted in IIS which requires SSL and client certificates, and afterwards invoke the request to the client, then it passes!
Looks like the request to the dummy application (IIS hosted) triggered something but I can't figured out what! Why is this happening? Is this some Microsoft bug?
来源:https://stackoverflow.com/questions/28853239/client-certificate-does-not-seem-to-get-sent