Activities

January 2014
M T W T F S S
« Dec   Feb »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Godaddy SHA-2 SSL : 400 MalformedCertificate Invalid Public Key Certificate

Recent I had provided an SHA-2 SSLfor installing it on Amazon Loadbalencer. While I’m trying to copy and paste the content of both Private Key and Public Key along with CA bundle certificate, It shows “Invalid Public Key Certificate” 🙁

After few searching over Google I seen that many of the them are experiencing the same issue with bad certificate format unlike this SHA-2 encryption.

Solution

1. Copy your private key (domain.com.key) and public key (domain.com.crt) to a Linux machine.
2. Covert the key and crt file to PEM format.
For Private key file : openssl rsa -in domain.com.key -text > private.pem
For Public Key file : openssl x509 -inform PEM -in domain.com.crt > public.pem

[root@rc-040 final]# openssl rsa -in domain.com.key -text > private.pem
writing RSA key
[root@rc-040 final]# openssl x509 -inform PEM -in 4b885bcf83900a.crt > public.pem
[root@rc-040 final]#

3. Download gd_bundle-g2.crt from https://certs.godaddy.com/anonymous/repository.pki

4. Pls note copy only the lines for private key (including –BEGIN RSA PRIVATE KEY– –> -END RSA PRIVATE KEY—-) from the private.pem. Don’t copy the entire content paste in to SSL edition in AWS UI. Use Notepadd++ editor if installed.

Then click on Save button to apply it on Amazon SSL page. See the image shown below

ELB-SSL

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>