Unable to call web service - The request was aborted: Could not create SSL/TLS secure channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 05:50 AM
I'm facing an issue where when I call a web service through WebClient I get an error "The request was aborted: Could not create SSL/TLS secure channel." . The code throws the same error even after enabling all protocol versions.
Here's my code:
resultData=""; try { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback ( delegate { return true; } ); WebClient client = new WebClient(); client.UseDefaultCredentials = true; String htmlCode = client.DownloadString(addressURL); resultData = htmlCode; Success=true; Message=""; } catch(Exception e) { Success=false; Message=e.GetBaseException().Message; }
I also tried removing ServerCertificateValidationCallback, still no luck.
Protocol version being used by server: TLS 1.2, AES with 256 bit encryption (High); DH with 1024 bit exchange (looked up in IE)
Also, the same code works on a VDI, however this doesn't work in a VSI.
Any idea what might help??
------------------------------
Amandeep Malhotra
Blue Prism Developer
Barclays Technology Centre India
Pune, Maharashtra
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-01-20 07:23 AM
Take a look at the following KB article on our Support Portal which may help with this - http://portal.blueprism.com/customer-support/support-center#/path/1140915312
------------------------------
Ryan Kitchen
Senior Support Analyst
Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-04-24 04:23 PM
Hello, I would like to know if you managed to solve the problem. I am facing the same and the link shared above does not work for me, nothing opens in the link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-04-24 08:10 PM
Hi Jaqueline.souza,
Below are the KB articles discussing about this issues. to access the KB article once you click any of the below link you need to select as customer and enter the blue prism portal credential to access the KB article.
1) https://support.blueprism.com/en/support/solutions/articles/7000078621-bpe-process-fails-with-error-the-request-was-aborted-could-not-create-ssl-tls-secure-channel-after
2) https://support.blueprism.com/en/support/solutions/articles/7000077648-troubleshooting-certificates
3) https://support.blueprism.com/en/support/solutions/articles/7000076691-bpe-error-the-request-was-aborted-could-not-create-ssl-tls-secure-channel-when-automating-using-en
4) https://support.blueprism.com/en/support/solutions/articles/7000078563-bpe-error-could-not-establish-trust-relationship-for-the-ssl-tls-secure-channel-when-a-certificate-
5) https://support.blueprism.com/en/support/solutions/articles/7000077239-are-the-basic-http-authentication-credentials-used-by-blue-prism-web-services-encrypted-
If I answered your query. Please mark it as the Best Answer
Harish Mogulluri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-04-24 08:33 PM
Harish, Thanks for the answer, however none of the links address the problem I'm having.
My problem in this case is that I can't make the mTLS connection.
I'm using the object Utility - HTTP available in the latest version and it doesn't have a step to make the TLS connection.
I even found some forums suggesting including the excerpt:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
but that didn't work either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-04-24 08:40 PM
To complement, here are the parameters I am using in the request:
