A self-signed SSL certificate can be used e.g. during a transfer of a website to us (from another provider) where the domain has been pointed locally towards our server. You may e.g. do this to ensure that the website is working properly before pointing the domain globally (especially if the website uses an automatic redirect from http to https). These certificates are only meant to be used temporarily.
To create a self-signed SSL certificate, follow these steps:
- Begin by logging on to cPanel.
- Click the icon
SSL/TLS
underSecurity
. - First, you need to create a private key for the certificate. Therefore, click the link under
Private keys
. - Here, select the
Key Type
and add aDescription
for the key:
Key Type: ChooseRSA, 4096-bit
here.
Description: Enter a description for the key, so that you’ll recognise it in the list of keys if you have more than one. Our plan in this example is to issue a certificate for the domain exempel.se, so we name the key accordingly.
Create the key by clicking theGenerate
button. - Your key will now be generated and displayed. You don’t have to do anything with the displayed key, just scroll down and click
Return to SSL Manager
. - Now, click the link below
Certificates
. You will not have to worry about a CSR when you create a self-signed certificate. - Scroll down until you find
Generate a New Certificate
and fill out the form:
Key: Select the key created under step 4 above.
Domains: Enter the domain name(s) the certificate shall cover. In this case, we use “exempel.se”, but you enter the domain(s) that you’re using.
City: Enter the city that should be included in the certificate. You can enter anything you want, as long as you only use A-Z. We enter “Gothenburg” in this case.
State: Since we don’t have states in Sweden, we enter “NA” here (as in “Not Applicable”).
Country: Choose the most fitting one, we select “SE (Sweden)”.
Company: Just as for City above, it doesn’t matter what you type in here, as long as it only consists of A-Z.
You do not have to enter anything in the rest of the fields.
Once you’re done, clickGenerate
to create the certificate. - You will now get a confirmation that the certificate is created. Click the link to the installer to install the certificate on the domain(s), since this is not done automatically.
- Scroll down until you find
Install an SSL Website
.
Select the domain you wish to install the certificate on via the dropdown menu next toDomain
and click theAutofill by Domain
button.
The textfields forCertificate (CRT)
andPrivate Key (KEY)
will be autofilled. You will not have to enter anything in the textfield forCertificate Authority Bundle (CABUNDLE)
, since you do not have one. Finally, clickInstall Certificate
. - You will now see a popup box confirming that the certificate has been installed!