mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 07:16:08 +00:00
.
This commit is contained in:
@@ -99,16 +99,20 @@ static const char NODE_CERT_PRIVATE [] PROGMEM = R"EOF(
|
|||||||
|
|
||||||
### Certificate generator for TLS encryption
|
### Certificate generator for TLS encryption
|
||||||
```text
|
```text
|
||||||
# openssl req -new -x509 -days 365 -extensions v3_ca -keyout ca.key -out ca.crt -passout pass:1234 -subj '/CN=TrustedCA.net'
|
openssl req -new -x509 -days 365 -extensions v3_ca -keyout ca.key -out ca.crt -passout pass:1234 -subj '/CN=TrustedCA.net'
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> If you generating self-signed certificates the CN can be anything.
|
> If you generating self-signed certificates the CN can be anything.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
# openssl genrsa -out mosquitto.key 2048
|
openssl genrsa -out mosquitto.key 2048
|
||||||
# openssl req -out mosquitto.csr -key mosquitto.key -new -subj '/CN=Mosquitto_borker_adress'
|
```
|
||||||
# openssl x509 -req -in mosquitto.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out mosquitto.crt -days 365 -passin pass:1234
|
```text
|
||||||
|
openssl req -out mosquitto.csr -key mosquitto.key -new -subj '/CN=Mosquitto_borker_adress'
|
||||||
|
```
|
||||||
|
```text
|
||||||
|
openssl x509 -req -in mosquitto.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out mosquitto.crt -days 365 -passin pass:1234
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
Reference in New Issue
Block a user