# Getting an error while running rest api in HTTP request activity

**URL:** <https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062>\
**Category:** Help\
**Tags:** webapi, activities\
**Created:** [August 22, 2019, 5:25am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062 "2019-08-22T05:25:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MVenkataiah](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@MVenkataiah](https://forum.uipath.com/u/MVenkataiah)\
**Post date:** [August 22, 2019, 5:25am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/1 "2019-08-22T05:25:40Z")

</div>

Hi everyone,  
I need to connect to a web service(Rest API) which asks for a client certificate and a password in HTTP request activity. but I cannot find where to get client certificate and password.  
Without filling client certificate and password, It throwing an error (" The underlying connection was closed: could not establish trust") as below.  
Any idea on how to do it? It would also be good to know how to do it with http request.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/4/5/4552a0525ccb72b9d3af78488646a438c71d0881.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/9/d/9d5c0856aacf0e41f2e370e53cd98f4bf09c133e.png)

---

<div class="post-metadata">

**Author:** ![HareeshMR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hareeshmr/32/181825_2.png) [@HareeshMR](https://forum.uipath.com/u/HareeshMR)\
**Post date:** [August 22, 2019, 6:22am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/2 "2019-08-22T06:22:12Z")

</div>

Can you explain the scenario which you are trying to do @MVenkataiah?

If you are calling the request which is https, you need to add the certificate ;

---

<div class="post-metadata">

**Author:** ![MVenkataiah](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@MVenkataiah](https://forum.uipath.com/u/MVenkataiah)\
**Post date:** [August 22, 2019, 10:27am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/3 "2019-08-22T10:27:04Z")

</div>

Thank you HareeshMR for your response.  
Will post more details on my request soon.

---

<div class="post-metadata">

**Author:** ![EngAnalyst](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@EngAnalyst](https://forum.uipath.com/u/EngAnalyst)\
**Post date:** [January 21, 2020, 9:42am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/5 "2020-01-21T09:42:19Z")

</div>

Did you solve it finally?

---

<div class="post-metadata">

**Author:** ![Ankita121](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Ankita121](https://forum.uipath.com/u/Ankita121)\
**Post date:** [January 29, 2020, 9:00am UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/6 "2020-01-29T09:00:38Z")

</div>

is it mandatory to add certificate while using https?  
I have downloaded postman app where i turned of the SSL certificate verification then i am able to receive the response . so how should i proceed on now? Should i add the certificate and the password?

---

<div class="post-metadata">

**Author:** ![abalaji51521](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/abalaji51521/32/177363_2.png) [@abalaji51521](https://forum.uipath.com/u/abalaji51521)\
**Post date:** [July 24, 2020, 1:19pm UTC](https://forum.uipath.com/t/getting-an-error-while-running-rest-api-in-http-request-activity/144062/7 "2020-07-24T13:19:18Z")

</div>

Hey Guys,

any solution on the above issue highlighted?

I am facing the same like "I turned off SSL certificate verification in postman and tried. I am getting response. But through UiPath not getting. how should proceed on now?
