Convert your SSL certificate to a production-ready Nginx server block configuration.
This tool converts your SSL certificate (PEM format or PFX/PKCS12) into a production-ready Nginx server block configuration. It follows the Mozilla Server Side TLS guidelines — the same standards used by SSL Labs to grade servers.
The generated config includes SSL protocols, cipher suites, session settings, OCSP stapling, HSTS headers, and HTTP to HTTPS redirect. Simply paste your certificate or upload a PFX file, select a security profile, and get a copy-paste ready Nginx config.
ssl_trusted_certificate for OCSP stapling verification.nginx -s reloadnginx -t/etc/nginx/ssl/ with restrictive permissions.ssl_certificate / ssl_certificate_key
Path to the fullchain certificate and private key files. Use absolute paths.
ssl_protocols
Specifies allowed TLS versions. Modern: TLSv1.3. Intermediate: TLSv1.2 TLSv1.3.
ssl_ciphers
Cipher suites allowed for handshake. Leave empty for TLS 1.3 (auto-negotiated).
ssl_stapling / ssl_stapling_verify
Enables OCSP stapling. Server fetches and caches the OCSP response for faster handshakes.
Nginx requires two files: the fullchain certificate (ssl_certificate) and the private key (ssl_certificate_key). Download the -fullchain.pem and .key files from this tool.
Add ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /path/to/chain.pem; to your server block. The chain certificate is required for verification.
Run nginx -t to test the config, then nginx -s reload to apply changes without downtime.