Certification issue while posting a data to the secured URL.

manzur

New Member
Hi Community,

I am calling a secured(https) rest api to post some data .I am getting following error.

Internal : Unexpected error Error during Web API HTTP Request
Web Exception Status: TrustFailure

I think we need to import a client certificate but not sure how to do that one.Please give me clear steps to import the certificate and also please provide steps to call secured https call to avoid this error.
And also Please let us know with example how to post the data using rest call in blue prism .I am not able to find any example for these .
 
Hi Community,

I am calling a secured(https) rest api to post some data .I am getting following error.

Internal : Unexpected error Error during Web API HTTP Request
Web Exception Status: TrustFailure

I think we need to import a client certificate but not sure how to do that one.Please give me clear steps to import the certificate and also please provide steps to call secured https call to avoid this error.
And also Please let us know with example how to post the data using rest call in blue prism .I am not able to find any example for these .
HI Manzur,

Did you get any solution for this? even i'm also facing the same issue. Could you please suggest how to solve this issue?
 

Sachin_Kharmale

Active Member
Hi Guys,

I am also facing same kind of issue while downloading data from remote server. (Certificate issue)
so while making request to remote resource i have mentioned bellow line in request so certificate issue solved for me try it at your end.
may be it will work for you as well
.:)

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

I hope it will help you..!
 

J_DEV_22

New Member
Hi Guys,

I am also facing same kind of issue while downloading data from remote server. (Certificate issue)
so while making request to remote resource i have mentioned bellow line in request so certificate issue solved for me try it at your end.
may be it will work for you as well
.:)

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

I hope it will help you..!


Hi Sachin,

I am wondering where you placed the line mentioned above? In the API call or in the custom code section of Web Service API in Blue Prism?

View attachment 1576104323859.png

Thanks,
J
 

rlarson

New Member
Hi Guys,

I am also facing same kind of issue while downloading data from remote server. (Certificate issue)
so while making request to remote resource i have mentioned bellow line in request so certificate issue solved for me try it at your end.
may be it will work for you as well
.:)

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

I hope it will help you..!
Hi Sachin,

I am wondering where you placed the line mentioned above? In the API call or in the custom code section of Web Service API in Blue Prism?

View attachment 4969

Thanks,
J


I was wondering the same, just ran into this problem and can't find where to place this. I tried in custom code on the action and then the common code. Checking for errors pops up a bunch of them.
 
Top