amountjoy
amountjoy

Reputation: 21

SSL stopped working on Google Cloud Platform when machine was resized

I'm in the middle of an SSL security certificate nightmare involving Google Cloud Compute platform, Cloud DNS and possibly Bitnami.

I am using a Magento installation on Google Cloud Compute. It was working fine until a few days ago I thought I would change the server size. 4 processors was too many, so I thought I'd modify the machine to go down to 2, which I did from the Cloud Console. Everything seemed fine and I went to bed. When I woke up the next day, the url in my browser was displaying the numeric IP address for my site rather than the domain name. It turned out that the https:// protocol was not working because, as Chrome says, there is a mismatch between the server name (now a numeric IP address) and the name listed in the SSL certificate.

I have tried everything, including restoring the machine to the 4-processor size, regenerating and reinstalling the SSL certificate.

Can someone please help me figure out where is the disconnect?

The IP address is correct, and has not changed. But the url www.dolcemia.com no longer shows up as dolcemia.com in the browser status bar. The culprit, allegedly, is that the server name does not match the server name in the certificate. enter image description here

Upvotes: 0

Views: 152

Answers (1)

amountjoy
amountjoy

Reputation: 21

Thank you Misha B. That little push was all I needed to find the solution.

The problem was an esoteric Bitnami issue. I needed to re-specify the hostname in a Bitnami config file. You were right. This file must have got changed as a result of the reboot.

This was the solution, where "dolcemia.com" is my domain name:
sudo /opt/bitnami/apps/magento/bnconfig --machine_hostname dolcemia.com

Wasn't in my ssl certificate but in the host name mismatch.

Bitnami documentation

Also, in case this helps anybody,in order to force dolcemia.com to "secure" on all pages, in Magento, Configuration set Unsecure Base URL to:

https://dolcemia.com:443/

(was http://dolcemia.com:80/)

Upvotes: 2

Related Questions