Certificates and PKI

This feature is currently available only to customers participating in a Private Preview. If you'd like to participate and be among the first to try this feature, ask our support or account team for details.

Workload Secrets Vault can issue X.509 certificates for workloads, such as short-lived client certificates for mutual TLS (mTLS), and SSH user certificates. There are two ways to work with certificate authorities (CAs):

Managed Certificate Authorities Signing with Your Own CA
CA private key Generated and stored by Workload Secrets Vault. Never returned. Imported from your existing CA, or generated for you. Stored as a secret at a path you choose.
Limits on what callers can request Templates restrict domains and lifetimes. The root's domains and maximum lifetime.
Issued certificates Tracked, and can be revoked and validated. A CRL is available. Not tracked. No revocation. You can embed the address of a CRL that you publish.
Signing requests (CSRs) Not supported. Workload Secrets Vault generates each key pair. Supported, or Workload Secrets Vault generates the key pair.
SSH user certificates No Yes
Access control Permissions only. Policies don't apply. Permissions, plus policies on the secret paths where the CA and certificates are stored.

What Both Approaches Have in Common

  • Keys and signatures. Keys that Workload Secrets Vault generates are 2048-bit RSA keys, and certificates are signed with SHA-256. You can't choose another algorithm or key size.

  • Client authentication only. Issued certificates carry the client authentication extended key usage. They can identify a workload to a service, but they can't be used as TLS server certificates.

  • Exact domains. Every name in a certificate must exactly match one of the allowed domains, including case. Domains need at least two labels, such as deploy.example.com, and wildcards aren't supported.

  • Encoding. Certificates, private keys, and CSRs are exchanged as Base64-encoded PEM text inside JSON. Decode them with base64 -d, for example jq -r '.certificate' issued.json | base64 -d > client.pem. Private keys are returned in PKCS #1 format (BEGIN RSA PRIVATE KEY).

In the CLI, pki ca register and pki ca generate work with your own CA, even though they're in the pki ca group with the managed CA commands. pki ca list shows managed CAs only.