Emmanuel Konan
Private PKI lab with Step-CA
I wrote a guide to setting up a private certificate authority with Step-CA and connecting it to a client service. It uses separate Debian-based CA and client environments.
This is a personal learning lab, not a client deployment.
Steps covered
- Prepare the CA and client environments.
- Initialize the private CA with Step-CA.
- Configure a service account, file ownership and systemd service.
- Enable ACME for automated certificate issuance.
- Configure the client service to use the private trust chain.
The commands and configuration are in the GitBook guide linked below.
Before using it in production
The lab does not cover a production HSM deployment. A production design would also need to address root and intermediate CA separation, issuer authorization, renewal, revocation, monitoring, backup and recovery.
When reproducing the lab, check that the client validates the expected service identity and trust chain, that private-key permissions are appropriate, and that renewal works. Also test what happens when a certificate expires or the issuer is unavailable.