16-Apr-2017
NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the
FAQ for more details.
I've started playing around with
Google's Cloud Platform recently and one of the first things I wanted to do was to secure my app's static pages so they could be delivered over
HTTPS. This meant that I needed to upload my certificate and private key to
Google. I went ahead and generated my key as usual and I thought I had an
RSA key already, but
Google didn't seem to like it.
This was the error I was getting -
"The private key that you've seleted does not appear to be valid."
I did some searching around and it appeared that my key had to be converted first. The header of my key started with:
That was a sign that
Google wouldn't accept that key. Luckily
openssl can easily convert the key to an expected format with the following command:
Now after loading the second, converted,
RSA key,
Google accepted it without error!
-i
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
If you spot something out of place, please do let me know.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to
this disclaimer.
Igor Kromin
Other posts you may like...