Depending on your WebService - Apache/Nginx, the SSL is added differently.
Before we start with the steps here is what you’ll need :
- Your server certificate
- Your intermediate certificates - CA
- Your private key
Installation Instructions - Nginx
Copy the Certificate Files into the proper directory on your server. -
/etc/ssl. They should be 3 as mentioned above.
Note: For better security, make them readable by root only.
Make the files load as one:
cat your_domain_name.crt Intermediate.crt >> YourDomainName.pem
Once you’ve added this open your virtual host file for the domain in question ad add the below code under the server block :
Here you'll have more code
Save the file and test your Nginx configuration with :
service nginx -t
If it says okay, then you can restart it and you should have your SSL installed.
Installation Instructions - Apache
It’s basically the same with the exception the configuration file is in a diffrent place and it’s edited a little bit differently:
If you however are still receiving an error with the SSL, it would mean something is not correct from your certificate and key not matching up to your CA not being the correct one. For that you’ll need to contact your SSL provider.