The following instructions will guide you through the SSL installation process on Amazon Web Services (AWS). If you have more than one server or device, you will need to install the certificate on each server or device you need to secure.
Because Amazon Web Services involves a variety of web hosting services, we highly recommend consulting Amazon's documentation to fully understand generating/uploading/configuring SSL. Because every AWS users takes advantage of different services and configuration, there will be no one size fits all solution.
Make sure you have all the following files saved before proceeding:
openssl x509 -inform PEM -in my-certificate
openssl x509 -inform PEM -in my-certificate-chain
aws iam upload-server-certificate –server-certificate-name my-server-cert –certificate-body file://my-server-certificate.pem –private-key file://my-private-key.pem –certificate-chain file://my-certificate-chain.pem
Note: If any errors occur, eference your AWS documentation.
Congratulations! You've successfully installed your SSL certificate! To check your work, visit the website in your browser at https://yourdomain.tld and view the certificate/site information to see if HTTPS/SSL is working properly. Remember, you may need to restart your server for changes to take effect.
Link to http://docs.aws.amazon.com/cli/latest/reference/iam/upload-server-certificate.html