Amazon EC2 - HTTPS - Certificate body is invalid. The body must not contain a private key
- by Tam Minh
I'm very new to Amazon EC2. I am trying to setup https for my website, I follow the offical instruction from amazon doc: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html
When I Upload a Signed Certificate using AWS command
aws iam upload-server-certificate --server-certificate-name dichcumga --certificate-body file://mycert.pem --private-key file://signedkey.pem --certificate-chain file://mychain.pem
And I got error
A client error (MalformedCertificate) occurred when calling the UploadServerCert
ificate operation: Certificate body is invalid. The body must not contain a private key.
mycert.pem is a combination of private.pem and signedkey.pem (which return by VeriSign)
copy private.pem+signedkey.pem mycert.pem
Please help to shed a light. Thank you in advance.