# MQTT | TLS version: v1.2 (TLS mandatory with CA signed server certificate)

**URL:** https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872
**Category:** General
**Created:** [17 November 2021 07:55 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872 "2021-11-17T07:55:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AYo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ayo/32/50481_2.png) [@AYo](https://discourse.nodered.org/u/AYo)
#### Post date: [17 November 2021 07:55 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/1 "2021-11-17T07:55:59Z")

</div>

Hi Buddies,

good day !  
i am trying to connect to a secure port MQTT Broker and from the documentation, it says

```auto
TLS version: v1.2 (TLS mandatory with CA signed server certificate)

```

i have been wondering how to connect with Node red to publish my data.

Thanks greatly for your quick feeback.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [17 November 2021 08:04 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/2 "2021-11-17T08:04:02Z")

</div>

What have you tried and how did it fail?

---

<div class="post-metadata">

### Author: ![AYo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ayo/32/50481_2.png) [@AYo](https://discourse.nodered.org/u/AYo)
#### Post date: [17 November 2021 08:18 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/3 "2021-11-17T08:18:08Z")

</div>

thanks greatly @hardillb

i have not try anything when i clicked use TLS  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/1488671b86c789ff60783ca25909a7e8b1c6854f.png)

i don't know what to insert in the property

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bc1f3735f7817e2ae13a2abb79512b02005b6265.png)

---

<div class="post-metadata">

### Author: ![AYo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ayo/32/50481_2.png) [@AYo](https://discourse.nodered.org/u/AYo)
#### Post date: [17 November 2021 08:29 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/4 "2021-11-17T08:29:42Z")

</div>

> [@AYo](#):
>
> `TLS mandatory with CA signed server certificate`

thanks @hardillb  
i found some documentation online on node -red TLS it seems to work and get connected, stil running a test.  
thanks

---

<div class="post-metadata">

### Author: ![AYo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ayo/32/50481_2.png) [@AYo](https://discourse.nodered.org/u/AYo)
#### Post date: [17 November 2021 08:39 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/5 "2021-11-17T08:39:22Z")

</div>

Hi @hardillb  
it is not working !  
this is the error i am getting

```auto
Error: ENOENT: no such file or directory, open 'cafile /etc/ssl/certs/DST_Root_CA_X3.pem'

thanks for your help

```

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [17 November 2021 08:56 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/6 "2021-11-17T08:56:22Z")

</div>

First you shouldn't need to enter anything in the TLS Config node if the Brokers certificate is signed by a public CA.

Secondly the TLS Config node supports 2 modes

1. File path mode, where the path you enter has to point to a file on the machine the Node-RED backend is running. This may not be the same as where the editor is running in the browser
2. Upload mode, where you upload the certificate file from the machine with the editor.

The error implies you have provided a file path from your editor machine and it can't be found on the machine running the backend.

It's also worth noting that by default NodeJS applications don't need to be passed Public CA files as it has a built in Certificate Store.

---

<div class="post-metadata">

### Author: ![AYo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ayo/32/50481_2.png) [@AYo](https://discourse.nodered.org/u/AYo)
#### Post date: [17 November 2021 09:24 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/7 "2021-11-17T09:24:27Z")

</div>

Thanks greatly @hardillb  
This help. I am trying to resolve it. Base on this info.

Thanks again !

---

<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: [16 January 2022 09:24 UTC](https://discourse.nodered.org/t/mqtt-tls-version-v1-2-tls-mandatory-with-ca-signed-server-certificate/53872/8 "2022-01-16T09:24:30Z")

</div>

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