Install an SSL certificate on Nginx
Deploy an IDigiTrust certificate on Nginx.
1. Build the chain
cat your_domain.crt intermediate.crt > fullchain.crt
2. Configure Nginx
server {
listen 443 ssl;
server_name example.com;
ssl_certificate /etc/nginx/ssl/fullchain.crt;
ssl_certificate_key /etc/nginx/ssl/your_domain.key;
ssl_protocols TLSv1.2 TLSv1.3;
}3. Redirect HTTP to HTTPS
server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;
}4. Test and reload
nginx -t && nginx -s reload