Prepare Scripts for SSL Connections

Article 53 in C-Sharp

2020-09-24 07:34:46 from bugfish
Prepare Scripts for SSL Connections
C-Sharp / Hints
Last Review on: 2021-10-26 19:20:39 | Hits: 285

If SSL Connections fail with Security Protocol Error, this code in Main Function could do the trick!

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
                            | SecurityProtocolType.Tls11
                            | SecurityProtocolType.Tls12
                            | SecurityProtocolType.Ssl3;

I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Currently 1 Upvotes!
captcha image
System - 2021-01-11 18:00:51
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.