How to make an SSL certificate
๐Ÿ”’

How to make an SSL certificate

Our servers


Generating a SSL certificate


Our servers are Apache with cPanel accounts
  1. Open the cPanel dashboard of the account
  1. Use the search and type โ€œSSL statusโ€
  1. Open the SSL status
  1. Select all the domain records
  1. Click the Auto SSL button
  1. It will take a few minutes but then the certificate will be generated

Redirect http to https via htaccess


Add this code snippet to the .htaccess file inside ~/public_html/ to redirect http requests to https
# Begin SSL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule>
#End SSL

Cloudflare


If the domain is linked to Cloudflare you can ensure a secure connection via the options available.

Quick start guide


  1. Improve security
    1. Automatic HTTPS Rewrites โ€“ turn this on
    2. Always use HTTPS โ€“ turn this on
  1. Optimize performance
    1. Auto Minify โ€“ toggle all these options on if we want to Cloudflare to do this
    2. Brotli โ€“ best to turn this on
  1. Summary
    1. Done

Netlify


-

Vercel


ย