Amazon EC2 - HTTPS - Certificate body is invalid. The body must not contain a private key
Posted
by
Tam Minh
on Server Fault
See other posts from Server Fault
or by Tam Minh
Published on 2014-08-19T02:24:55Z
Indexed on
2014/08/20
10:23 UTC
Read the original article
Hit count: 630
amazon-ec2
|ssl
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.
© Server Fault or respective owner