A Manic Developer's Place

Generate cloudfront ssl certificates

July 31, 2017

DevOps Linux

Basically…

Generate csr


openssl req \ 
-sha256 \ 
-new -newkey \ 
rsa:2048 -nodes \ 
-keyout www.manicDev.net.key \ 
-out www.manicDev.net.csr 

Download certs & prepare


cat COMODORSADomainValidationSecureServerCA.crt > chain.crt

cat www_manicDev_net.crt > ServerCertificate.cer

Upload


aws iam upload-server-certificate --server-certificate-name manicDev-net --certificate-body file://ServerCertificate.cer --private-key file://www.manicDev.net.key --certificate-chain file://chain.crt --path /cloudfront/ssl/ 

List


aws iam list-server-certificates 

Delete


aws iam delete-server-certificate --server-certificate-name manicDev-net 

From …

https://bryce.fisher-fleig.org/blog/setting-up-ssl-on-aws-cloudfront-and-s3/

ManicDev on Github

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/O d-pu s-:+++ a+ C+++ UL+++ P- L++ E--- W+++ N o-- K--? w++ O M+ V PS PE Y+ PGP t+ 5? X+ R tv- b+ DI- D++ G e+ h++ r++ z
------END GEEK CODE BLOCK------