TLS Certificate Management
The certs module manages TLS certificates used for establishing TLS connections (e.g., for https or mqtts). In addition to the certificates that can be stored here, all firmwares have the Mozilla NSS project certificate bundle embedded. This bundle includes root certificates that allow connections to most publicly accessible servers.
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. warp2-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. warp2-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. warp2-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. warp3-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. warp3-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. warp3-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. wem-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. wem-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. wem-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. wem2-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. wem2-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. wem2-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |
certs/state
The current state of TLS certificate management.
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
certsobject[8] | Known TLS certificates.
|
certs/add
Adds a new TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/add -d '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/add -m '{
"id": 0,
"name": "ISRG Root X1",
"cert": "-----BEGIN CERTIFICATE-----\nMIIFYDCC[__Zertifikatspayload gekürzt__]psr6GtPAQw4dy753ec5\n-----END CERTIFICATE-----"
}'
| Name | Description |
|---|---|
idint | ID of the certificate to be added. Must not already be used by a certificate. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/modify
Modifies an existing TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/modify -m '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
| Name | Description |
|---|---|
idint | ID of the certificate to be modified. |
namestring | Display name of the certificate. |
certstring | Certificate in PEM format |
certs/remove
Deletes an existing TLS certificate.
# $HOST e.g. warp-AbCd
Write
curl http://$HOST/certs/remove -d '{ "id": 0 }'
or abbreviated:
curl http://$HOST/certs/remove -d '0'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Write
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '{ "id": 0 }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/certs/remove -m '0'
| Name | Description |
|---|---|
idint | ID of the certificate to be deleted. |