如何关闭 WCF 服务客户端的证书吊销?
如何关闭 WCF 服务客户端的证书吊销? 客户端代理由 wsdl.exe 生成并继承 SoapHttpClientProtocol。
How can I turn off certificate revocation for a WCF service's client?
The client proxy was generated by wsdl.exe and inherits SoapHttpClientProtocol.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您正在寻找
ServicePointManager.ServerCertificateValidationCallback
:它需要一个
RemoteCertificateValidationCallback
委托:我以前从未处理过吊销的证书(我可以处理其他问题,例如过期的 SSL),但我猜你只是做类似的事情:
I think you're looking for
ServicePointManager.ServerCertificateValidationCallback
:Which takes a
RemoteCertificateValidationCallback
Delegate:I've never dealt with a revoked certificate before (I have hand to handle other issues such as expired SSL's), but I'm guessing you'd just do something like:
您可以在应用程序的配置文件中设置证书验证和吊销选项:
You can set certificate validation and revocation options in the config file for your application:
http://www.request-response.com/blog/PermaLink,guid,e9bb929b-d0b4-4626-b302-1d2715fc344a.aspx