How to Disable SSL verification while sending API request in Uipath?

Hi

I am trying to do a REST API call to one of the endpoint URL using HTTP request. Here the certificate is not signed , hence am not able to make the connection.

is there a way i can disable SSL verification/validation while making the call ?

regards
Vishnu

if you endpoint accepts http instead of https, then it would work…

It didnt :frowning:

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

so it would not be possible cause of you endpoint… you need the certificate to be valid on your side

I am experiencing the same issue…

1 Like

Hi,

I had the same problem, writing this code (in a InvokeCode activity) before the HTTP request activity it works for me

System.Net.ServicePointManager.ServerCertificateValidationCallback =
Function(se As Object,
cert As System.Security.Cryptography.X509Certificates.X509Certificate,
chain As System.Security.Cryptography.X509Certificates.X509Chain,
sslerror As System.Net.Security.SslPolicyErrors) True

Regards

7 Likes

This is GREAT! It worked for me! Cheers

1 Like

Dear all,
The code invoke didn’t work for me on UiPath robot version 2019.10.4.
I’m still getting either timeout or if I increase the timeout status code 0 with blank result from the API call.
Has someone faced such issue and managed to fix it?
UiPath.WebAPI.Activities 1.7.0

Thank you.

After using the above invoke code activity now i am getting the failed to resolve the endpoint error

HTTP Request has a property to Enable/Disable SSL certificate verification

More info here

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.