Public endpoints¶
Machines that should trust the CA need its public certificates and keys.
They are files in data_dir, and the server also hands them out, on its
HTTPS address and, if configured, on the plain HTTP public_address.
| Path | Content | Use |
|---|---|---|
/root.crt |
The root certificate (PEM) | Install where the CA should be trusted. |
/intermediate.crt |
The intermediate certificate | Build chains; OCSP checks. |
/ssh_user_ca.pub |
The SSH user CA key(s) | TrustedUserCAKeys on SSH servers. |
/ssh_host_ca.pub |
The SSH host CA key(s) | @cert-authority lines in known_hosts. |
/crl |
The CRL (DER) | Revocation lists. |
/ocsp |
The OCSP responder | Revocation checks for single certificates (GET and POST). |
/v1/certificates/<serial> |
One issued TLS certificate, by serial number | Fetch a certificate again. |
/health |
{"status":"ok"} |
Health checks (HTTPS address). |
During an SSH CA key rotation, the .pub
files list both the current and the next key.
The plain HTTP address¶
- Serves only the public information above. Nothing that issues certificates, no login, no ACME, no SCEP.
public_urlis written into every TLS certificate as its CRL distribution point, OCSP responder and CA issuers address.
Fetching the root is not trusting it¶
Fetching root.crt over the network only tells you what the server at
that address says. bxp trust checks it against
its fingerprint. To check by hand:
curl -sk https://ca.example.com:8443/root.crt -o root.crt
openssl x509 -in root.crt -noout -fingerprint -sha256
and compare with the fingerprint the administrator handed out
(bxp fingerprint on the CA machine). There is deliberately no
endpoint that serves the fingerprint: one fetched from the CA would prove
nothing.