简体   繁体   English

WSE +自签名证书

[英]WSE + self-signed certificat

There is an old code on the WSE (Web Services Enhancements). WSE(Web服务增强)上有一个旧代码。 Now in "sandbox" of service with which it works for HTTPS began to use self-signed certificat. 现在,在可用于HTTPS的服务的“沙箱”中开始使用自签名证书。 And now in the sandbox i am getting error -- Could not create SSL / TLS secure channel. 现在在沙箱中我遇到了错误-无法创建SSL / TLS安全通道。 Something like this does not help. 这样的事情没有帮助。

System.Net.ServicePointManager.ServerCertificateValidationCallback =
                (sender, certificate, chain, sslPolicyErrors) => true;

How i can to ignore a certificate? 我如何忽略证书?

Should be able to do something like this to ignore cert validation. 应该能够执行这样的操作来忽略证书验证。

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

you could also see this question and answers for additional details that might better apply to your situation. 您还可以查看此问题和答案,以获取更多可能更适合您的情况的详细信息。

How to ignore the certificate check when ssl ssl时如何忽略证书检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM