Regenerate the self-signed TLS certificate
POST/settings/network/certificate
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/settings/network/certificate"
Replaces the daemon's TLS certificate with a freshly generated self-signed certificate and hot-reloads it so new connections use the new cert. If Let's Encrypt DNS-01 is configured, unattended renewal is disarmed so this self-signed cert is not overwritten without another explicit setup. Let's Encrypt issue and renew are handled by configureLetsEncrypt, not by this operation.
Responses
- 200
- default
Settings including the new certificate expiry.
An error response.