- Connect to WordPress via SSH
Go to your Google Compute homepage and click the hamburger menu ( upper left-hand corner) → Compute Engine → VM Instance → SSH.

2. Check Operating System
lsb_release -a

3. Generate Certificate Instructions
Navigate to certbot.eff.org and select Apache from the Software dropdown, then select the correct operating system based on the output from Step 2 – which was Debian 9.7 (stretch).

4. Install Certbot
Next, go back to your SSH terminal and paste the command that you copied, then press Enter to execute the command.
sudo apt-get install certbot python-certbot-apache -t stretch-backports
5. Generate SSL Certificates Now that you’ve installed Certbot, the next step is to generate the SSL certificates.
sudo certbot –apache


6. Restart Apache Server
In order for your certificate changes to take effect, you need to update/restart you Apache server by executing the following command:
sudo service apache2 restart
Update WordPress URLs[Text Wrapping Break]In your browser, enter the URL to your WordPress dashboard (with https://). wp-admin→ settings→ General settings

