Prepare Scripts for SSL Connections

Knowledge Base Entry: #53
^Top
<< Back
Mobile-Menu










Prepare Scripts for SSL Connections
Category: C-Sharp/Fixes
Author: Bugfish
Created at: 2020-09-24 07:34:46
Modified at: 2025-09-19 23:58:16
Directs Hits: 675

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;

Caution: 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.
This Website is using Session Cookies for Site Functionality.