X509Certificate2.Verify() method always return false for the valid certificate

后端 未结 2 478
渐次进展
渐次进展 2021-01-18 17:15

I am using smart card for authentication.

The SecurityTokenService (authentication service) is hosted on my machine only. The smart card has a valid certificate and

2条回答
  •  没有蜡笔的小新
    2021-01-18 17:59

    I think, the problem is due to the proxy server and some security settings in my organization. I cannot give valid reason why it works from WinForm client and why does not from code hosted under IIS.

    But the fact I want to let readers know is that Verify() method worked on server side code too when I hosted service in IIS running on the machine outside my usual domain! So you may check if the firewall settings of your domain/organization is coming in you way.

提交回复
热议问题