Nginx TLS Configuration
Last updated: July 31, 2026Latest Frontend Version: 2.17.4
The following steps apply to any Nginx configuration using TLS in tiCrypt.
Complete these steps after placing your TLS certificate and key:
Verify the TLS certificateโ
openssl x509 -in /etc/pki/tls/certs/example-stacked.crt -text -noout
Verify the TLS private keyโ
openssl rsa -in /etc/pki/tls/private/example.pem -check
caution
If your certificate or private key is not valid, Nginx will not start. Check their validity before restarting Nginx.
The remaining critical steps are:
Create or Download Diffie-Hellman Parametersโ
Either generate new parameters:
openssl dhparam -outform pem -out /etc/pki/tls/dhparam.pem 2048
Or download them from Mozilla:
curl https://ssl-config.mozilla.org/ffdhe2048.txt > /etc/pki/tls/dhparam.pem
Allow Nginx to Connect (SELinux)โ
setsebool -P httpd_can_network_connect=true
Restart Nginxโ
systemctl restart nginx