We are using third party web service to send SMS. Web service does not require any certificate and if i enter service address in browser i get below output. As the output its confirmed that we do not need any certificate to call this service.
The service is working fine if i call it from my development machine using visual studio but from IIS im getting error
Could not establish secure channel for SSL/TLS with authority.
Try to add this line in your code!
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.