Monday, September 29, 2014

SSL upload

Upload

aws iam upload-server-certificate --server-certificate-name mycertname --certificate-body file://mycert.cer --private-key file://mycert.key

or

aws iam upload-server-certificate --server-certificate-name mycertname --certificate-body file://mycert.cer --private-key file://mycert.key  --certificate-chain file://certificate_chain_file

Verify

aws iam get-server-certificate --server-certificate-name mycertname


Commands to convert .crt and .key to .pem
openssl rsa -in server.key -text > my-private-key.pem
openssl x509 -inform PEM -in server.crt > my-private-cert.pem

No comments:

Post a Comment