3

How do I setup SSL from COMODO for Google App Engine?

Originally I have used the certificate with other servers from Rackspace down to EC2 now I have migrated the domain for the certificate to GAE.

From the previous server I generated these files with openssh where these files were used for the creation of COMODO certificate:

  1. mydomain.csr
  2. mydomain.key

Then after registration with Namecheap.com for COMODO certificate, I got

  1. www_mydomain_com.ca-bundle
  2. www_mydomain_com.crt

What can I do to allow https access for my custom domain in Google App Engine?

quarks
  • 33,478
  • 73
  • 290
  • 513
  • 1
    Here are the docs https://cloud.google.com/appengine/docs/using-custom-domains-and-ssl?hl=en – Josh J Oct 21 '15 at 21:01
  • Yes I did that but getting "The private key you've selected does not appear to be valid." however the same sets of keys worked with my Ubuntu server before (on EC2) – quarks Oct 22 '15 at 04:27

1 Answers1

7

To fix this I had to

openssl rsa -in mydomain.key -text > mydomain.key.pem

and do this: App Engine: The private key you've selected does not appear to be valid

That is, delete the text above the -----BEGIN RSA PRIVATE KEY-----

Then GAE console accepted the Unencrypted PEM file.

Community
  • 1
  • 1
quarks
  • 33,478
  • 73
  • 290
  • 513
  • The `-text` argument is unnecessary, then you won't have that garbage in the file to be deleted. This also fixed my new Let's Encrypt private key for use with GAE. – intgr Nov 07 '15 at 14:43