TLS Certificate Usage¶
Mount generated certificates read-only into containers:
podman run --rm \
-v .localdev/certs/demo.local:/certs:ro,Z \
-p 8444:443 \
nginx
Use:
/certs/tls.keyfor the private key./certs/tls.crtfor the issued certificate./certs/fullchain.crtfor servers that expect the leaf certificate plus chain./certs/ca-chain.crtfor trust-chain debugging.
Keep tls.key out of images. Mount it at runtime from host storage, a secret manager, or a Kubernetes Secret.