π― Whatβs the goal? Get a free SSL Certificate for your website using Cloudflare and use HTTPS. | β οΈ Why does it matter? using HTTPS is an important ranking factor for SEO. |
π Whatβs the result? By default, your website is using HTTPS (SSL). | β When do you do this? Ideally as soon you put your website online, only once. |
β
Any special requirements? You need to have your own domain name (SOP005). | πββοΈWho should do it? Owner of the website or the person in charge of managing it. |
π Where this is done: On Cloudflare.com.
β³ How long will this take? about 20 minutes
Letβs get started, in 20-min your website will be more secure.
Environment setup:
- We recommend that you use Google Chrome browser to navigate the web.
- Access to your Google Cloud Platform Admin Panel,
- Access to your domain setting.
Creating Account on Cloudflare.com
- Go to www.cloudflare.com.
- Click on βSign Upβ.
- Enter your βEmailβ address.
- Then come up with a βPasswordβ – it needs to fulfill the criteria underneath.
- Finally, click on βCreate Accountβ.
After creating your Cloudflare Account go check your email.
You should receive one from Cloudflare to verify your Email.
Open it and click on the provided link to finish the verification.
Logging into Cloudflare and connecting your website with it
- After verifying your email address go back to www.cloudflare.com.
- Click on βLog Inβ.
- Enter your βEmailβ and βPasswordβ and click on βLog inβ.
If you already added your website to your account and connect your domain with it you should skip and go directly to the βSet up security and speed configuration for your websiteβ section of this SOP.
- After you log in you should see that βYou currently donβt have any websitesβ.
- Click on β+ Add Siteβ.
- Enter your site (the domain you bought – e.g. βsitename.comβ).
- Then click on βAdd siteβ.
- Choose the βFreeβ plan.
- Then click on βConfirm planβ.
- Now you should see DNS records for your domain. You have to change highlighted βValueβ to your website Public IP address. Leave this page open in your browser.
Getting your IP address from Google Cloud
- Open another tab in your web browser.
- Go to your Google Claud Panel.
- Click on the burger βmenu buttonβ in the top left corner.
- In the menu navigate to βCompute Engineβ, then click on βVM instancesβ.
- And there is your IP address. Copy it.
- Go back to βCloudflareβ and paste it in the place of highlighted value.
- After editing it should look like this (of course with your personal βIPv4 Public IPβ).
- Click on βContinueβ.
Changing your nameservers
- After clicking on βContinueβ you will be presented with new βnameserversβ for your domain. For this SOP we bought a domain on GoDaddy.com so we will show how to change your βnameserversβ on Godaddy.com. Cloudflare will always tell you which βnameserversβ must be replaced no matter where you bought your domain. Option to manage βnameserversβ will always be under βDNSβ settings.
For the purpose of this SOP, we will operate on a domain from GoDaddy.
Check our SOP005 to find out how to buy a domain.
- Leave Cloudflare open and in another tab of your browser go to godaddy.com.
- Click on βSign Inβ.
- Enter your account data and press on βSign Inβ or choose to sign in with βGoogleβ if you used it to create an account on GoDaddy.com.
- After you sign in you should see the domain that you bought. Click on βDNSβ to access DNS settings.
- Now you should see the βNameserversβ page. Click on βChangeβ.
- Then βEnter my own nameservers (advanced)β.
- Now you should see two boxes called βNameserver 1β and βNameserver 2β. Leave this page opened.
- Go back to Cloudflare.com and copy βNameserver 1β.
- Now go back to GoDaddy.com and paste it into the βNameserver 1β box.
- Now you should do the same for βNameserver 2β. Go back to Cloudflare and copy βNameserver 2β.
- Then go back to GoDaddy.com and paste it into the βNameserver 2β box.
- Click on βSaveβ.
- After saving, refresh the GoDaddy.com page.
- And as you can see your domain now is βUsing custom nameserversβ.
- After that go back to Cloudflare.com and click on βDone, check nameserversβ.
Set up security and speed configuration for your website
If you connected your website with your domain using Cloudflare earlier, to enter SSL configuration you have to choose βSSL/TLSβ after logging in to your Cloudflare account and selecting your site.
If you performed previous steps form this SOP, you will be automatically redirected to SSL/TLS setting after you clicked βDone, check nameserversβ.
- Choose βFlexibleβ.
- Make sure the switch is βOnβ next to the βAlways Use HTTPSβ option.
- Check all boxes within the βAuto Minifyβ option.
- Then set the βBrotliβ option βOnβ.
- Finally, click on βDoneβ.
Note that now DNS settings of your domain are managed by Cloudflare, so if you have to edit any of your DNS records in the future you will have to do it on your Cloudflare account.
Checking if your domain is secured and correctly assigned to your website
- Enter your domain into your web browser and press βEnterβ on your keyboard.
- You should be connected to your website.
- Now click on the padlock at the left side of your website address and check if it is secured.
It is all set! Your domain is connected to your website and now your website is secured with an SSL certificate. Your website is now ready to welcome your audiences.