简体   繁体   English

无法使用 IIS 的权限为 SSL/TLS 建立安全通道

[英]Could not establish secure channel for SSL/TLS with authority from IIS

We are using third party web service to send SMS.我们正在使用第三方 web 服务发送短信。 Web service does not require any certificate and if i enter service address in browser i get below output. Web 服务不需要任何证书,如果我在浏览器中输入服务地址,我会低于 output。 As the output its confirmed that we do not need any certificate to call this service.由于 output 确认我们不需要任何证书来调用此服务。

在此处输入图像描述

The service is working fine if i call it from my development machine using visual studio but from IIS im getting error如果我使用 Visual Studio 从我的开发机器调用该服务,但从 IIS 调用它,我得到错误

Could not establish secure channel for SSL/TLS with authority.无法为具有权限的 SSL/TLS 建立安全通道。

Try to add this line in your code!尝试在您的代码中添加这一行!

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

暂无
暂无

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

相关问题 错误:无法通过授权为SSL / TLS安全通道建立信任关系 - Error: Could not establish trust relationship for the SSL/TLS secure channel with authority 无法为具有“xxxxx.com”权限的 SSL/TLS 建立安全通道 - Could not establish secure channel for SSL/TLS with authority 'xxxxx.com' 通信后无法使用授权建立SSL / TLS的安全通道 - Could not establish secure channel for SSL/TLS with authority after communication WCF:无法为具有权限的SSL / TLS安全通道建立信任关系 - WCF: Could not establish trust relationship for the SSL/TLS secure channel with authority WCF WF服务,无法通过授权为SSL / TLS建立安全通道 - WCF WF Service, Could not establish secure channel for SSL/TLS with authority 无法为具有“...”权限的 SSL/TLS 建立安全通道,但在代码中设置了 TLS。 在本地机器上工作正常,但在生产中不行 - Could not establish secure channel for SSL/TLS with authority “…” but TLS is set in the code. Works fine on local machine but not in Production SSL WCF“无法与权限'localhost'建立SSL / TLS安全通道的信任关系 - SSL WCF "Could not establish trust relationship for the SSL/TLS secure channel with authority 'localhost' 通过SSL的WCF服务无法使用授权'test-service.hostname.com'为SSL / TLS建立安全通道 - WCF Service over SSL Could not establish secure channel for SSL/TLS with authority 'test-service.hostname.com' 无法为SSL / TLS建立安全通道 - Could not establish secure channel for SSL/TLS 调用第三方Web服务和证书时无法使用授权建立SSL / TLS的安全通道 - Could not establish secure channel for SSL/TLS with authority when calling third party web service along with certificate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM