How to Install a Free SSL Certificate on Google Cloud Platform

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone this is tony teaches tech i'm tony and in this video i'm going to show you how to install an ssl certificate on your google cloud platform compute engine virtual machine instance that's a mouthful basically what that means is i'll help you install a free ssl certificate issued by let's encrypt using certbot for your google cloud platform virtual machine i don't know if that helped but let's go ahead and get on into the tutorial here what i am logged into here is the google cloud platform console i am in the vm instances section here and i have an instance running an ubuntu server which i installed wordpress on so let's go ahead and log in via ssh here we're just going to do that within a browser window you can do that via ssh 2 in a terminal window or putty or something like that but basically what we're going to do in here since unless you in case you missed the video previously we went through the process of setting up a domain name in a wordpress website on this instance so that's already configured let me just show you that real quick so let's let's take a look at the etc nginx sites available and the configuration file for my domain name and by the way this is specifically for uh nginx this tutorial but the same concepts will apply for apache there's just a couple different variations you switch out you switch out nginx for apache i'll let you know when you have to do that anyway um this is our configuration file this is what the cert bot tool is going to come in and read so i have my domain name tony florida dot me and www tony florida dot me already configured and it's working so that's we're good to go as far as that's concerned so anyway let's go ahead and install the certbot tool we can do that with sudo apt-get install certbot and then we also want the python cert bot nginx you want to replace nginx with apache here if you're using an apache server so let's go ahead and execute that and uh it says python cert bot nginx is not uh it's been obsolete okay so we need to use python3 certbot nginx so let's go ahead and do that this will take just close to seven thousand kilobytes of space and that's okay um when that's done i don't think it usually takes too long uh it's setting up certbots creating sim links and it's doing the triggers for the mandb when that's done we can simply execute the command cert bot followed by dash dash nginx again if you're using apache you can do dash dash apache here instead and what this is going to do is read that configuration file that we just looked at um it wants to know your password right off the bat here in order to send you updates about when your ssl certificate is expiring so you can come back in here and renew it so i'm going to type in my my yeah my email address here and now this is asking us if you agree with their terms and conditions you can type a to agree and this is asking if they're okay or if you're okay with them sending you additional emails i'm gonna say no to that and now like i said this is reading our configuration file for nginx it's detected those two domain names in there i want to apply an ssl certificate for each one of those so i will not type in anything here and just hit enter and that will make an ssl certificate for both of them certbot is verifying that you actually do own this domain name probably by putting something in the root of your website and this is now asking us if we want to redirect all traffic from http to https that's a really good idea so let's go ahead and type in two to redirect hit enter and we are good to go so now if we go back to our website before this is what the website was it's not secure there was no ssl certificate installed and if we refresh the page because we did the redirect we should be redirected to the https version of our website so let's go ahead and do that and it's working it's thinking we're good to go we see the lock icon and let's take a look at the certificate our connection is secure it says that this was issued by let's encrypt as we expected and it expires friday january 22nd 2021 at 6 52 mountain time so that is it as far as uh doing a installation of an ssl certificate on a google cloud platform virtual machine i know there's a lot of different factors here as far as what you put on your compute engine instance but if you're using nginx or apache like i said this tutorial will work for you guys if you have any questions about this let me know in the comments below please subscribe for more videos like this from me in the future and if you do i'll see you in the next one
Info
Channel: Tony Teaches Tech
Views: 12,053
Rating: undefined out of 5
Keywords: google cloud ssl wordpress, how to install free ssl on google cloud platform, ssl certificate google cloud platform, google cloud free ssl, ssl wordpress google cloud, certbot google cloud, letsencrypt google cloud, google cloud letsencrypt
Id: uSm3xepvUNM
Channel Id: undefined
Length: 5min 7sec (307 seconds)
Published: Tue Nov 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.