π― Whatβs the goal? Get a free SSL Certificate for your website using Cloudflare and 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 minutes your website will be more secure.
Environment setup:
- We recommend that you use the Google Chrome browser to navigate the web.
- Access to your Amazon Web Services (AWS) account,
- Access to your domain setting.
Creating an 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 fulfil 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 directly to the section βSet up security and speed configuration for your websiteβ 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’s Public IP address. Leave this page open in your browser.
- Go to aws.amazon.com. (in another tab of your web browser)
- Click on βSign In to the Consoleβ.
- Enter the Email address you used to create your Amazon Web Services Account (Make sure you selected βRoot userβ).
- Enter your AWS account password and press βEnterβ on the keyboard or click on βSign inβ.
- After signing in choose βEC2β under βComputeβ services.
- Then click on the βInstancesβ on the left side of the page.
- And there at the bottom of the page, you should see the βDescriptionβ tab and your βIPv4 Public IPβ.
- Copy your βIPv4 Public IPβ.
- 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. The 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 click 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 β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 open.
- 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 from this post, you will be automatically redirected to SSL/TLS setting after you clicked βDone, check nameserversβ.
- Choose βFlexibleβ.
- Then click on βEdge Certificatesβ tab
- And make sure the switch is βOnβ next to the βAlways Use HTTPSβ option.
- Finally, you can go to βSpeedβ (1) in the βOptimizationβ (2) tab
- 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 here you can check if it is SSL Secure
Youβre 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.