mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
4167b60991
commit
8f3168f9c9
@ -99,16 +99,20 @@ static const char NODE_CERT_PRIVATE [] PROGMEM = R"EOF(
|
||||
|
||||
### Certificate generator for TLS encryption
|
||||
```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]
|
||||
> If you generating self-signed certificates the CN can be anything.
|
||||
|
||||
```text
|
||||
# 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
|
||||
openssl genrsa -out mosquitto.key 2048
|
||||
```
|
||||
```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]
|
||||
|
Loading…
Reference in New Issue
Block a user