MYOWNCA / DOCUMENTATION
Your first homelab certificate
Learn the complete private-PKI loop: create a lab issuer, request a certificate, install trust, and secure a service you control.
From Docker to your first approved certificate
Follow a Test/Lab setup, issue a person’s client certificate with a second operator’s approval, and use it to access a private site through Nginx mutual TLS. The written guide below follows the server HTTPS workflow.
3:241. Prepare a small, private lab
Start with one Linux host for myOwnCA, one service host, and a client you control. They can be separate virtual machines. Choose a local name such as service.home.arpa and point local DNS or a hosts entry at the service.
Use software signing for the first walkthrough. No HSM, TrueRNG, or cloud account is required. Free non-commercial use allows 10 active certificate identities; a genuine renewal retains its existing identity slot.
Start with the public Docker image. Get myOwnCA from Docker Hub. The same image supports AMD64 and ARM64; Docker selects your architecture automatically. Application state is stored in the persistent myownca-state volume, and both published ports listen only on the Docker host’s loopback address.
docker run -d \
--name myownca \
--restart unless-stopped \
--read-only \
--tmpfs /tmp \
--cap-drop ALL \
--security-opt no-new-privileges:true \
-p 127.0.0.1:8765:8765 \
-p 127.0.0.1:8000:8000 \
-v myownca-state:/var/lib/myownca \
enigmais/myownca:latestdocker logs myowncaThe first launch prints a setup address and one-time token in the container logs. By default the wizard is at http://127.0.0.1:8765/setup. Keep this listener private. For a remote host, forward it through SSH:
ssh -L 8765:127.0.0.1:8765 your-user@your-ca-hostOpen the loopback setup URL in your local browser and enter the token from the container logs. The application’s supplied Compose stack is another option when you have a source checkout; it must be built from that checkout and requires proxy TLS material first. Use standalone deployment for local PKCS#11 hardware.
2. Create the Test/Lab hierarchy
- Select Test/Lab, SQLite, and the software signing backend.
- Set the service URLs to the addresses your lab clients can reach. Review CRL, AIA, and OCSP publication settings before issuing certificates.
- In the issuing CA step, choose Test/Lab — create local CA and confirm with
CREATE LAB CA. - Create the initial administrator account and save its temporary credentials. Review role-based TOTP settings.
- Finish setup, sign in, and establish the Certificate Operator accounts needed for your issuance policy. Administrators manage templates; operators approve requests.
Test/Lab creates a throwaway local root and issuer for evaluation. A long-lived production deployment uses the offline-root ceremony; do not promote a lab root into production trust.
3. Issue a certificate for your service
- Create or select a holder and a TLS server template. Allow the desired DNS SAN and server-authentication purpose.
- Generate a service key and CSR on the service host, following the Nginx or Apache guide.
- Submit the CSR and check the requested subject, SAN, and template. Obtain distinct operator approvals: first issuance defaults to two, configurable per template.
- Export the issued certificate and issuing chain. The service private key stays on the service host.
Secure a service with Nginx ↗
HTTPS, client certificates, and CRL enforcement.
PRACTICAL GUIDESecure a service with Apache ↗
The same certificate workflow with Apache 2.4.
4. Install trust on your clients
Export the public root certificate as PEM. Verify its SHA-256 fingerprint against the CA through a trusted channel, then install it only on lab clients you control. Never distribute the root private key.
openssl x509 -in root.crt -noout -subject -fingerprint -sha256On a Debian/Ubuntu client, add the PEM root to the system trust store:
sudo install -m 0644 root.crt /usr/local/share/ca-certificates/myownca-lab.crt
sudo update-ca-certificatesFor a single command, use curl --cacert root.crt instead of changing system trust. Browsers and other applications can maintain their own stores; import the verified root in their certificate-authority settings if they do not use the system store. myOwnCA does not automatically distribute root trust.
5. Keep the lab working
- Enable expiry reminders and confirm delivery. Renew through the existing certificate identity, then install the replacement on the service and reload it.
- Practice revocation with a disposable client identity. Refresh the service’s CRLs and verify that new connections are rejected.
- Back up application state and secrets; test restoration before depending on the installation.
- When retiring the lab, remove its root from every trust store where you installed it.
Next, explore hardware-protected signing and TrueRNG, or review the complete feature reference.
Planning a deployment?
Talk to EnigmaIS
