SSL certificate on VPS/VDS is used to ensure the security of data transfer between the client and the server. An SSL certificate is used to protect the transmitted data by encrypting it, thus preventing attackers from accessing this data.
An SSL certificate on a VPS/VDS also helps in improving user trust in your website as it ensures that your website is secure and trusted. In addition, an SSL certificate improves your site's SEO optimization, as Google and other search engines favor HTTPS-protected sites.
The archive with data for SSL certificate installation will be sent immediately after certificate issuance to the contact e-mail specified by you during registration on the PQ.Hosting website.
You can also download the archive in your PQ.Hosting personal cabinet in the SSL Certificates section
If you did not enable the "Do not save the key in the system" option when ordering an SSL certificate, the key can be found in your personal cabinet in the SSL Certificates section. If for some reason you did not save the key, reissue the certificate using a new CSR request.
SSL Certificate Name - the name of the certificate under which it will be displayed in the system. It can contain Latin alphabet letters, numbers, dots, as well as _ and - signs.
SSL Certificate - the contents of the SSL Certificate in PEM format
.
SSL Certificate Key - the contents of the SSL Certificate key in PEM format.
SSL Certificate bundle - the contents of the SSL Certificate bundle file in PEM format. A letter from a certificate authority usually contains an archive with two files - the certificate itself and the certificate chain (a file with the .ca-bundle
extension).
https://www.ssllabs.com/ssltest/analyze.html;
https://www.sslshopper.com/ssl-checker.html.
Please note that the GlobalSign Certification Authority sends the chain of custody file in PKCS7
format (extension .p7b
). You can open this file in a text editor or convert it to PEM
format. Example command for conversion: openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
To find out which web server handles SSL requests - Apache or Nginx, run the command:
netstat -napt | grep 443
1. The certificate is installed in the Apache configuration file:
For Debian OS - /etc/apache2/apache2.conf
;
for OS CentOS - /etc/httpd/conf/httpd.conf
.
2. Add the certificate details to the VirtualHost section of your domain:
Configuration Example
<VirtualHost 10.0.0.1:443>
DocumentRoot /var/www/user/data/www/domain.com
ServerName domain.com SSLEngine on
SSLCertificateFile /path/to/domain.crt
SSLCertificateKeyFile /path/to/domain.key
SSLCACertificateFile /path/to/ca.crt
</VirtualHost>
3. Restart Apache:
Command for OS CentOS
apachectl restart
Command for Debian OS
apache2ctl restart
The certificate is installed in the Nginx configuration file.
1. Combine the SSL certificate, intermediate and root certificates into one file your_domain.crt
. You can find the certificate data in the e-mail message sent to your contact e-mail after the certificate is issued. You can also download them together with the main certificate in your personal cabinet on the PQ.Hosting website.
File example
-----BEGIN CERTIFICATE-----
#Your Certificate#
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
#Intermediate Certificate#
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
#Root Certificate#
-----END CERTIFICATE-----
2. Create the file your_domain.key
and copy the content of the certificate's private key into it.
nano your_domain.key
3. Copy your_domain.crt
and your_domain.key
files to the same directory. For example, /etc/ssl/
.
sudo cp your_domain.crt your_domain.key /etc/ssl/
4. Configure the server block in the Nginx configuration file as follows:
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/your_domain.crt;
ssl_certificate_key /etc/ssl/your_domain.key;
server_name your.domain.com;
}
5. Reboot the Nginx server:
/etc/init.d/nginx restart
If you have difficulty installing an SSL certificate on your hosting account, contact support for further assistance.