Last active
March 23, 2018 01:35
-
-
Save pahud/84c1ae14497cd773f3ce9830664710dc to your computer and use it in GitHub Desktop.
AWS IAM upload-server-certificate example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aws iam upload-server-certificate \ | |
--server-certificate-name my-cert-name \ | |
--certificate-body file://cert.pem \ | |
--private-key file://privkey.pem \ | |
--certificate-chain file://chain.pem |
always prepend /cloudfront/
to the path of the certificate
- http://docs.aws.amazon.com/cli/latest/reference/iam/upload-server-certificate.html
- aws iam upload-server-certificate --server-certificate-name CertificateName --certificate-body file://public_key_certificate_file --private-key file://privatekey.pem --certificate-chain file://certificate_chain_file --path /cloudfront/DistributionName/
- aws iam update-server-certificate --server-certificate-name CertificateName --new-path /cloudfront/DistributionName/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
then you got the response like this