Skip to main content

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.

Example
# $HOST e.g. warp-AbCd

Read

curl http://$HOST/certs/state
{ "certs": [{ "id": 1, "name": "ISRG Root X1" }] }
NameDescription
certs
object[8]

Known TLS certificates.

  • [0..7] - A TLS certificate
NameDescription
id
int

ID of the certificate

name
string

Display name of the certificate




certs/add

Adds a new TLS certificate.

Example
# $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-----"
}'
NameDescription
id
int

ID of the certificate to be added. Must not already be used by a certificate.

name
string

Display name of the certificate.

cert
string

Certificate in PEM format




certs/modify

Modifies an existing TLS certificate.

Example
# $HOST e.g. warp-AbCd

Write

curl http://$HOST/certs/modify -d '{ "id": 0, "name": "ISRG Root X1 (Lets Encrypt)", "cert": null }'
NameDescription
id
int

ID of the certificate to be modified.

name
string

Display name of the certificate.

cert
string

Certificate in PEM format




certs/remove

Deletes an existing TLS certificate.

Example
# $HOST e.g. warp-AbCd

Write

curl http://$HOST/certs/remove -d '{ "id": 0 }'

or abbreviated:

curl http://$HOST/certs/remove -d '0'
NameDescription
id
int

ID of the certificate to be deleted.