Skill 2.2.5
Generate certificates and SSH keys for development purposes
Key Concepts
EC2 key pairs can be created in the console or with aws ec2 create-key-pair, or generated locally with ssh-keygen and imported with aws ec2 import-key-pair. AWS keeps only the public key; the private key must be stored securely by you. EC2 Instance Connect and Session Manager avoid managing long-lived SSH keys entirely.
For local TLS testing, a self-signed certificate can be generated with openssl; for AWS-hosted endpoints, ACM issues free certificates after DNS or email validation. Private CA can issue internal certificates for development environments. Keys and certificates must never be committed to source control.