Install free ssl certificate for Bitnami WordPress on google cloud platform
This is step by step guide to install free SSL certificate for WordPress website that runs on Google cloud platform and most importantly this is for bitnami WordPress .(bitnami version), This is a letsencrypt renew guide as well on google cloud platform for WordPress bitnami version
SSl certificate will improve your search ranking.
So before moving in this tutorial you should complete 3 things first in order to install a SSL certificate.
First you should install WordPress on Google cloud platform (here)
Second you should point your domain with Google Cloud (here)
Third you need to reserve a static IP address on Google cloud platform (here)
Now you need to generate a SSL certificate so our Second command is Certbot auto renewal client. It will take care of the auto renewal SSL certificate so you don't have to renew your certificate by yourself.
Use the below command (Make sure you add your own domain )
Press N if you do not want to share your email or you can Press Y if want to share your email
Now you should see Congratulation message, (like you're seeing in above image) that means you have successfully generated a SSL certificate.
(or letsencrypt renew has done, if your ssl expired.)
(You have successfully Install free SSL certificate for bitnami WordPress)
It's time to test our auto renewal SSL certificate functionality.
Next Paste below command
./certbot-auto renew --dry-run
Press Enter
If you see Congratulation That means your auto renewal function is working.
Now in the next step you have to set up a crontab. in general crontab will check the ssl certificate, is ssl certificate due for renewal if yes then it will automatically renew it.
Now paste the below command
sudo crontab -e
Press Enter
Here you have to choose text editor 1-3 to create the crontab
Press 1 (This is nano, easiest text editor.) and then Press Enter
Using the down arrow from your keyboard and place your cursor below the last line in this window and paste the following Command
This command will tell certbot to check for the letsencrypt renew auto renewal SSL certificate two time a today, other words it will Install free SSL certificate by itself.
After pasting this command Press Ctrl+x and then Press Y for yes, lastly Press Enter
In the next step we have to configure the SSL certificate. Now use the below Command.
Keep in mind that you must replace your domain name with example.com moreover you can use WWW to run your website or you can go with https://example.com
After pasting this command Press Ctrl+x and then Press Y for yes, lastly Press Enter
lastly Restart your Apache Server
Execute the command below to restart Apache server
sudo /opt/bitnami/ctlscript.sh restart apache
Congratulation ! You have successfully installed SSL certificate on your website now you can check out your website.
if you have any question regarding this tutorial feel free to ask anything regarding this topic.