# Request node with ca certificate

**URL:** <https://discourse.nodered.org/t/request-node-with-ca-certificate/78880>\
**Category:** General\
**Tags:** http-request\
**Created:** [1 June 2023 20:09 UTC](https://discourse.nodered.org/t/request-node-with-ca-certificate/78880 "2023-06-01T20:09:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Post date:** [1 June 2023 20:09 UTC](https://discourse.nodered.org/t/request-node-with-ca-certificate/78880/1 "2023-06-01T20:09:50Z")

</div>

Hi all!

I'm doing some request to an API that has SSL certificate. The output says the follwing:  
**RequestError: unable to verify the first certificate : [https://urlfromtheclient.com](https://urlfromtheclient.com)**  
and also **UNABLE\_TO\_VERIFY\_LEAF\_SIGNATURE**

So, the client sent me the CA certificate which it has "client -- chain -- root) in CRT format. I put that in the following section:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/14e36023b07b1526768d87a68596f4098c7291b5.png)

But it doesn't work. I have the same error as above.

Anyone worked this issue before?.

Thanks!

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [2 June 2023 05:40 UTC](https://discourse.nodered.org/t/request-node-with-ca-certificate/78880/3 "2023-06-02T05:40:12Z")

</div>

The CA cert should not include the client certificate.

You could try to copy the content _including_ the BEGIN/END CERTIFICATE of the root certificate and save it in a .crt and retry?

---

<div class="post-metadata">

**Author:** ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Post date:** [2 June 2023 10:51 UTC](https://discourse.nodered.org/t/request-node-with-ca-certificate/78880/4 "2023-06-02T10:51:32Z")

</div>

ok, and how could i know which is the root part?. The client sent me everything in the same CRT file which include the " **client + chain + root**".

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 August 2023 10:52 UTC](https://discourse.nodered.org/t/request-node-with-ca-certificate/78880/5 "2023-08-01T10:52:27Z")

</div>

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