Installing an SSL on your shared cPanel account.
Krystal hosting do provide Let's Encrypt SSLs on all our shared plans for free. If you need to purchase an SSL from a SSL provider (Krystal do not sell certificates) then you will need to generate a CSR to request a certificate for your site.
Generating a CSR
- Log into your cPanel account.
- Once Logged in, scroll down to the 'Security' section and click 'SSL/TLS'.
- Click the 'Generate, view, or delete SSL certificate signing requests.' link to generate your Certificate Signing Requests.
- Fill in the information at the top of the form (remember domain name will be specific to the SSL, so www.testsite.com, testsite.com or subdomain.testsite.com).
- Once details have been filled in, you can click 'Generate'. You will then be presented with the Certificate Request (CSR) which you will have to copy.
- When you purchase an SSL order, this CSR will need to be submitted to generate a certificate that will work with the server.
Installation
Once you have the SSL issued, you can now install it.
- Go back to the cPanel and back to the page where you made your request (SSL/TLS).
- Click on the 'Manage SSL sites' link.
- Click the drop down and select your domain.
- Paste your certificate into the 'Certificate: (CRT)' textbox.
- Click the Autofill Certificate button. Since you generated the CSR in cPanel, the rest of the textboxes should fill in automatically
- Scroll down and click 'Install Certificate'
SSL Redirects
Sites will load over http by default unless you specify or put in in redirect to load over https.
You can put in a redirect into your '.htaccess' file on your site. If you don't have one you can create one and add the following:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]