cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to call web service - The request was aborted: Could not create SSL/TLS secure channel.

AmandeepMalhotr
Level 3
Hi,

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
------------------------------
Amandeep Malhotra Robotics Engineer Barclays Technology Centre India Pune, Maharashtra
5 REPLIES 5

RyanKitchen
Staff
Staff
Hi Amandeep,

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
------------------------------
Ryan Kitchen Senior Support Analyst Blue Prism

jaqueline.souza
Level 3

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

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.

jaqueline.souza
Level 3

To complement, here are the parameters I am using in the request:

jaquelinesouza_0-1713209996662.png