Jan 28, 2025
This article will walk you through installing a Certificate in Nginx. If this is not the solution you are looking for, please search for your solution in the search bar above.
You can watch the video below for a tutotial.
Or, you can check the step by step guidelines below.
To install a certificate in Nginx, a "Certificate Bundle" must be created. To accomplish this, each certificate (SSL Cert, Intermediate Cert, and Root Cert) must be in the PEM format.
-----BEGIN CERTIFICATE----- #Your GlobalSign SSL Certificate# -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- #GlobalSign Intermediate Certificate# -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- #GlobalSign Root Certificate# -----END CERTIFICATE-----
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;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root /home/www/public_html/your.domain.com/public/;
index index.html;
}
}
sudo /etc/init.d/nginx restart
Check your certificate installation for SSL issues and vulnerabilities.