I have to renew my certificate on Google App Engine but when I enter my new public certificate and private key, I have got an error "cannot parse certificate"
I have tried with RapidSSL and Letsencrypt and both fail
Here is my process to get the keys (with Letsencrypt):
sudo ./certbot-auto certonly -–manual -d www.mysite.fr -m my-mail@o.fr –-agree-tos
- I get the result after successful challenge : "Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/www.mysite.fr/fullchain.pem"
sudo cat /etc/letsencrypt/live/www.mysite.fr/fullchain.pem
and then copy/paste in the "PEM encoded X.509 public key certificate" textarea of the Google cloud SSL configsudo openssl rsa -in /etc/letsencrypt/live/www.mysite.fr/privkey.pem -out rsa.pem
cat rsa.pem
and then copy/paste in the "Unencrypted PEM encoded RSA private key" textarea of the Google cloud SSL config
When I press the Google cloud SSL config button "Upload" I get the error "could not parse certificate". Any clue?
I have the message at the top of SSL certificate page: "The SSL feature has been migrated here from Google Apps. To get started, verify ownership of your domains by completing step 1 here." Could this cause the cryptyc error message "could not parse certificate"?
When I click on the "here" link in the message, I go through all steps but I do not want to configure my DNS A and AAAA as CNAME seems enough to make it run today and I have mail and other subdomains handled by my DNS config of today. I don't want to break it all. Does anyone from Google know how it works behind the scenes?
EDIT : Finally not a DNS problem or partially unverified ownership. Worked well with Let's encrypt. It was a copy/paste side effect inserting invisible chars that makes google parsing fail. Would be nice to improve the service by scraping invisible chars before parsing. A quick win? I would recommend to never use copy/paste for keys and certificate! The Google Cloud Console has a way to download files on your own computer and then you can upload them to the App Engine without being corrupted.