- Products
- Solutions
- Resources
- Trials
- Support
- Partners
- Communities
The request was aborted: Could not create SSL/TLS secure channel.
I have created a script to POST users to a wsdl service. I can run the script from with in designer, and it functions as desired. Once I attach the script to a process (UNSAccountB Insert) it errors out with ssl/tls channel. Has anyone encountered an issue like this? What was your solution to the issue?
Thanks Keith P.
Not sure whether you are talking PowerShell or VB.Net script, but I have had similar issues with ServiceNow and SalesForce and was able get over the hump by setting the ServicePontManager.SecurityProtocol to support the TLS versions that were required.
VB.NET
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
PowerShell
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
Just drop that in at the beginning of your script/function.
Hope that helps.