CloudFront SSL Certificate

by Scott, Revised on February 22, 2018 (Web Development)

Requires the aws client.

sudo apt install awscli

Install new certificate. Place key and certificate in same directory the command is run from. List the certificates to see if the certificate is on the system. Once uploaded, use the CloudFront admin area to select the distribution and edit information to use the new certificate. Delete the old certificate.

aws iam upload-server-certificate --server-certificate-name new_cert_name --certificate-body file://new_cert_name.crt --private-key file://new_cert_name.key --path /cloudfront/path/

aws iam list-server-certificates

aws iam delete-server-certificate --server-certificate-name old_cert_name

Tags: Web Development