· 7 years ago · Oct 08, 2018, 04:50 PM
1# Amazon Certificate Manager
2# Import certificate from aws cli
3# tested on Let's encrypt certificate :)
4#
5# amazon cloudfront support maximum 2048 bit cert,
6# if more than that it wont displayed on list...
7#
8# Region must be set to us-east-1 (Virginia) if you want to use it on CloudFront
9
10aws configure set aws_access_key_id <ACCESS_KEY>
11aws configure set aws_secret_access_key <SECRET_KEY>
12aws configure set region us-east-1
13aws acm import-certificate \
14# --certificate-arn <ARN> \ Only for updating
15--certificate file://<CERT.PEM> \
16--private-key file://<PRIVKEY.PEM> \
17--certificate-chain file://<CHAIN.PEM>