Interview Prep/Networking/TLS, Certificates & Network Security

How should private keys be protected?

IntermediateProductionTLS, Certificates & Network Security
Answer

Generate on the host or in an HSM/KMS and never commit to Git. Permissions 0600 owned by the service user, stored in a secrets manager (Vault, AWS Secrets Manager) and delivered at runtime, rotate on suspicion of exposure, and use separate keys per environment.

For edge, offload to KMS-backed signers or cloud load balancers to avoid holding keys at all. Scan repositories for leaked keys with gitleaks or trufflehog.

All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security