Private PKI
Not every certificate should come from a public CA. Service-to-service mTLS, device
identity and internal tooling all need certificates that public CAs cannot
sensibly issue - you cannot get a WebPKI certificate for
payment-svc.svc.cluster.local, and you should not want one.
NextPKI includes a private CA for exactly this.
Hierarchy
Section titled “Hierarchy”NextPKI Root CA (offline)└── Tenant Issuing CA (one per tenant) ├── leaf certificates └── delegated OCSP signerThe root signs tenant intermediates and nothing else. Every leaf you receive is issued by your tenant’s intermediate, so one tenant’s CA cannot issue for another.
Signing keys live behind a pluggable key provider: PKCS#11 for HSM-backed deployments and SoftHSM for development. The private keys are never in application memory in a form that can be exported.
What it issues
Section titled “What it issues”Four built-in certificate profiles - TLS server, mTLS client, S/MIME and code signing - cover the usual internal cases, and a fifth, internal one is used for the OCSP signer. A profile governs key usage, extended key usage, validity ceiling and whether SANs are permitted. A request that violates its profile is rejected before signing rather than producing a certificate nobody wanted.
Issued leaves carry CRL distribution points and AIA extensions, so revocation and issuer discovery work the way relying parties expect.
Revocation
Section titled “Revocation”Both mechanisms are available:
- CRL - a signed v2 certificate revocation list per tenant intermediate, with a monotonic CRL number.
- OCSP - RFC 6960 responses. Signing is delegated to a dedicated OCSP signer
certificate carrying
id-kp-OCSPSigningandocsp-nocheck, rather than using the intermediate’s key directly for online responses.
The OCSP responder answers over HTTP: POST /ocsp/{tenant} with a DER-encoded
request, and GET /ocsp/{tenant}/{base64} for the cacheable, nonce-less requests
of RFC 5019. Transport-level errors follow RFC 5019 as well - a well-formed
application/ocsp-response carrying malformedRequest, unauthorized or
internalError with HTTP 200, because OCSP clients ignore bodies on any other
status. The tenant segment selects the issuing intermediate, and issued leaves
carry the matching responder URL in their AIA extension.
Both CRL and OCSP output are verified against openssl rather than only against
our own code, which matters for a component whose output other people’s TLS stacks
have to accept.
Audit trail
Section titled “Audit trail”Every signing operation is recorded, and the audit log is hash-chained and append-only: entries link to their predecessor, and there is no update or delete path. Tampering with history breaks the chain visibly instead of quietly.
For a private CA this is the difference between “we believe only authorised certificates were issued” and being able to demonstrate it.
Access
Section titled “Access”The private CA is not self-service. The v1 API has no operations for it, and there is no public endpoint for requesting an internal certificate; issuance, revocation, CRL and OCSP are driven by NextPKI’s operator tooling. A tenant that needs internal certificates - mTLS between services, device identity - is set up on request. If that is what you need, say so.