# HTTP Error: self signed certificate

**URL:** <https://discourse.nodered.org/t/http-error-self-signed-certificate/30147>\
**Category:** General\
**Created:** [15 July 2020 20:21 UTC](https://discourse.nodered.org/t/http-error-self-signed-certificate/30147 "2020-07-15T20:21:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmqs](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fmqs](https://discourse.nodered.org/u/fmqs)\
**Post date:** [15 July 2020 20:21 UTC](https://discourse.nodered.org/t/http-error-self-signed-certificate/30147/1 "2020-07-15T20:21:15Z")

</div>

Hello,  
in my system, I have currently 2 raspberries pi 3 b+ that are in different networks. In one of them (raspberry A), I have Emoncms and in the other (raspberry B) I have node-red communicating with some field devices (inverters). In raspberry A, I have generated a self signed certificate for the Emoncms to secure it. I've copied the certificate files to the raspberry B and I tried to direct the checking of the certificate to the directory where these files are. I tried using the npm command: npm config set cafile /mydirectory/mycert.pem --global and I tried establishing an environment variable that would point to this directory in the environment file in the directory /etc: set NODE\_EXTRA\_CA\_CERTS=/mydirectory/mycert.pem.  
But I still get an error when I try to push anything to Emoncms.  
 ![Capturar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd9598fdcaf918c11fa3345ce5728ff59fda909c.png)  
So, could anyone please help me?

---

<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:** [13 September 2020 20:21 UTC](https://discourse.nodered.org/t/http-error-self-signed-certificate/30147/2 "2020-09-13T20:21:22Z")

</div>

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