Client Certificate does not seem to get sent

人走茶凉 提交于 2020-01-16 00:38:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!