App Engine: The private key you've selected do

2020-05-26 13:39发布

问题:

I'm trying to add a new SSL certificate to my Google App Engine account, but after following all the steps in the manual I kept getting this error uploading the Unencrypted PEM encoded RSA private key:

The private key you've selected does not appear to be valid.

Anyone have experienced this issue?

回答1:

I had the same problem last week. Google's instructions are lacking...

Your PEM file has this line:

-----BEGIN RSA PRIVATE KEY-----

Delete everything above this line and it will work.



回答2:

Ok, SSL configuration continues to be like trying to bathe a black cat in a dark room. Here's the answer that worked for me: Trouble with Google Apps Custom Domain SSL



回答3:

Google requires an RSA formatted private key, which should have the following header (note the word RSA):

-----BEGIN RSA PRIVATE KEY-----

If your key has just: ---BEGIN PRIVATE KEY--- (no RSA), then you will need to convert it. You can use OpenSSL for that:

openssl rsa -in server.key -out server_rsa.key