Download the local CA certificate
GET
/tls/ca.crt
const url = 'https://your-server.example/api/tls/ca.crt';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-server.example/api/tls/ca.crtReturns the SimpleDeploy local CA certificate in PEM format when the server is running with self-signed TLS. Used by the Trust page so users can install the CA on their device.
Responses
Section titled “Responses”PEM-encoded certificate.
string format: binary
string
Resource not found.
Media typetext/plain
string