# 3 Jun 21:57:25 - \[error\] \[tls-config:bbb\] Error: ENOENT: no such file or directory, open 'C:\\Users\\Danilo Mota\\1c309041c8-certificate.pem

**URL:** <https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590>\
**Category:** General\
**Created:** [4 June 2018 01:03 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590 "2018-06-04T01:03:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 01:03 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/1 "2018-06-04T01:03:22Z")

</div>

Hey guys! Please Help me.

I’m trying to connect a device using aws + nodered but there is the error below

3 Jun 21:57:25 - [error] [tls-config:bbb] Error: ENOENT: no such file or directory, open ‘C:\Users\Danilo Mota\1c308041b7-certificate.pem’

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 June 2018 08:01 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/2 "2018-06-04T08:01:21Z")

</div>

Hi,

That error means the file the tls-config node is configured to use doesn’t exist. That’s all we can say without more information about how you’ve configured the node and what steps you’ve taken to create/provide the requires tls certificates.

Nick

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 June 2018 09:09 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/3 "2018-06-04T09:09:18Z")

</div>

being Windows you may need to escape those \ characters. so c:\\ …etc - or maybe c:/ instead

---

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 11:09 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/4 "2018-06-04T11:09:20Z")

</div>

Hello @knolleary,

in node-red is like below:

![node-red%20tls%20config](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/457a99ef0b3699ab033d0de7413b0e287b7e015d.png)

I've created the certificates directly from the AWS when creating the thing.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 11:11 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/5 "2018-06-04T11:11:44Z")

</div>

@knolleary,

The files exists as you can see in the image... ![tls](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/5ae11e1d42e49796558790240786aa122e6dc195.png)

tks!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 June 2018 11:14 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/6 "2018-06-04T11:14:14Z")

</div>

Have you tried the suggestion from @dceejay ?

Try using forward slashes rather than back-slashes - ie `C:/Users/Danilo Mota/1c308041b7-certificate.pem`

---

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 11:15 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/7 "2018-06-04T11:15:00Z")

</div>

@dceejay,

I’ve tried already.

tks!

---

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 11:15 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/8 "2018-06-04T11:15:40Z")

</div>

I did it already. =(

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 June 2018 11:18 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/9 "2018-06-04T11:18:15Z")

</div>

The file listing shows you have a file called: `1c308041b7-certificate.pem.crt`

The error is for a file called `1c308041b7-certificate.pem`

What have you entered for the ‘Certificate’ field in the node? The screenshot you’ve shared doesn’t show the full path.

---

<div class="post-metadata">

**Author:** ![DaniloMota](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DaniloMota](https://discourse.nodered.org/u/DaniloMota)\
**Post date:** [4 June 2018 11:26 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/10 "2018-06-04T11:26:22Z")

</div>

@knolleary,

You got it. It was missing the “.crt”. 😒

thank you!

---

<div class="post-metadata">

**Author:** ![basilusp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/basilusp/32/6302_2.png) [@basilusp](https://discourse.nodered.org/u/basilusp)\
**Post date:** [25 February 2019 13:39 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/11 "2019-02-25T13:39:08Z")

</div>

Hi everyone,

I'm currently trying to do the same (connect node-red to aws iot core) and I have exactly the same problem. I made sur not to forget the .crt but this is still my error message:

Error: ENOENT: no such file or directory, open 'C:\Users\bpi\Desktop\AWSIOT\Device2SIM-fe87e36c4b-certificate.pem'

I also tried with backslash and frontslash it doesn't help.

Screenshot of node-red:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/84b6e5aa740e62b8b8b09d1dde76a9cb64ea05b7.png)

Can anyone help with this? Thank you a lot!

Basile

---

<div class="post-metadata">

**Author:** ![basilusp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/basilusp/32/6302_2.png) [@basilusp](https://discourse.nodered.org/u/basilusp)\
**Post date:** [25 February 2019 13:39 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/12 "2019-02-25T13:39:44Z")

</div>

My folder with the key's and certificate:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/aada9aa1d449f2c71761387b669cd0e60dfab4f0.png)

---

<div class="post-metadata">

**Author:** ![basilusp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/basilusp/32/6302_2.png) [@basilusp](https://discourse.nodered.org/u/basilusp)\
**Post date:** [25 February 2019 13:40 UTC](https://discourse.nodered.org/t/3-jun-2125-error-tls-config-bbb-error-enoent-no-such-file-or-directory-open-c-users-danilo-mota-1c309041c8-certificate-pem/590/13 "2019-02-25T13:40:34Z")

</div>

Tutorial I tried to follow:

And the full paths I typed are:  
C:/Users/bpi/Desktop/AWSIOT/09c2ce07bf-certificate.pem.crt  
C:/Users/bpi/Desktop/AWSIOT/09c2ce07bf-private.pem.key  
C:/Users/bpi/Desktop/AWSIOT/VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem
