SSL/TLS Reverse Proxy Configs
Configure SSL termination, proxy SSL verify, and cipher suites specifically tailored for edge reverse proxies routing to internal applications.
What is this tool?
The SSL/TLS Configuration Generator produces highly secure, Mozilla-compliant server blocks for NGINX, Apache, and HAProxy.
Configuring SSL/TLS correctly is critical for passing compliance audits (PCI-DSS, HIPAA) and achieving an A+ on the Qualys SSL Labs test. The cryptographic landscape changes rapidly; older protocols like TLS 1.0 and TLS 1.1 are now deprecated, and many ciphers are vulnerable to attacks like POODLE or BEAST. This generator abstracts these complexities by providing Modern, Intermediate, and Old configurations based on the latest Mozilla Server Side TLS guidelines.
How to Use This Tool
1. Select Server Profile: Choose between NGINX, Apache, or HAProxy to generate the correct syntax for your specific web server.
2. Choose a Mozilla Profile: Select Modern (for clients released within the last 5 years), Intermediate (recommended general-purpose, supports older clients), or Old (if you must support legacy systems like Windows XP).
3. Configure Certificates: Provide the absolute file paths to your server certificate (the `.crt` or `.pem`) and your private key.
4. Advanced Security: Toggle features like Strict-Transport-Security (HSTS), OCSP Stapling, and HTTP/2 to maximize performance and security.
Best Practices
- Use the **Intermediate** profile unless you have strict requirements to drop all traffic from older, yet still somewhat common, clients. Intermediate is considered the safest default for public-facing websites.
- Enable OCSP Stapling (`ssl_stapling on;`). This allows your server to cache the certificate revocation status, saving the client's browser from having to make a slow, privacy-leaking request to the Certificate Authority.
- Generate a strong Diffie-Hellman (DH) parameter file using `openssl dhparam -out dhparam.pem 2048` and reference it in your configuration. This hardens your server against Logjam attacks.
- Always enable HTTP to HTTPS redirection globally to ensure no traffic is sent in plaintext.
Common Mistakes
- Leaving TLS 1.0 or TLS 1.1 enabled. These protocols are officially deprecated by the IETF and will cause modern browsers to show a security warning.
- Pointing the certificate directive to the wrong file. For NGINX and Apache 2.4.8+, you must use a 'Fullchain' certificate bundle that includes your site's certificate AND the intermediate certificates.
- Enabling HSTS with `includeSubDomains` before testing. If you have subdomains that are not yet protected by SSL, enabling this directive will instantly break them for all users.
Security Notes
- Implement a strict HSTS policy: `Strict-Transport-Security: max-age=63072000; includeSubDomains; preload`.
- Use `ssl_prefer_server_ciphers on;`. This forces the client to respect your server's chosen cipher suite order, preventing attackers from forcing the use of weaker ciphers.
- Ensure your private key (`.key` or `.pem`) has strict file permissions (`chmod 600`) and is owned by `root`.
Production Tips
- Enable SSL Session Caching (`ssl_session_cache shared:SSL:10m;`). A 10MB cache can store roughly 40,000 sessions, drastically reducing the CPU overhead of full TLS handshakes for returning visitors.
- Set `ssl_session_tickets off;` if you are using a multi-server setup behind a load balancer, as session tickets require synchronizing the ticket key across all servers to be effective securely.
- Use HTTP/2 (or HTTP/3). HTTP/2 multiplexes multiple requests over a single TCP connection, significantly reducing latency compared to HTTP/1.1 over TLS.
Frequently Asked Questions
What is the difference between Modern and Intermediate profiles?
What is HSTS?
Why do I need a Diffie-Hellman (DH) parameter?
How We Keep Your Configs Safe & Valid
Built-in Error Checking
Every file is checked against official rules. We catch missing fields and bad syntax. YAML indentation errors are flagged right away. Kubernetes, Terraform, and Docker specs are all covered. API versions and labels are verified too. You get valid output every time you generate.
100% Private & Local
All tools run in your browser only. Your API keys never leave your machine. We do not use any tracking scripts. No data is sent to any server. Passwords and secrets stay on your device. Crypto operations use the Web Crypto API. Your privacy is fully protected at all times.
Secure Settings by Default
Configs use safe defaults out of the box. Containers run as non-root users. Root filesystems are set to read-only. Dangerous Linux capabilities are dropped. Network policies limit pod-to-pod traffic. TLS 1.3 is enabled for web servers. Security headers are added where needed.
Ready for CI/CD & Git
Output files are ready for your Git repo. Use them with ArgoCD, Flux, or GitHub Actions. Files use clear formatting and comments. Code review is easy for your team. Indentation and key order are consistent. Test in staging before going to production. Every file is clean and well-structured.
Infrastructure as Code
Store configs in Git alongside your code. Terraform modules include typed variables. Backend configs support remote state locking. Outputs work across multiple modules. Ansible playbooks use clear task steps. Chef and Puppet configs are also supported. Every file works with version control tools.
Monitoring & Tracing
Set up Prometheus with auto-discovery rules. Create Grafana dashboards with template variables. Add alerting rules with severity labels. Use OpenTelemetry for trace collection. Forward logs to Loki or Elasticsearch. Connect to Jaeger or Tempo for tracing. Monitor metrics, logs, and traces together.
Container & Docker Safety
Dockerfiles use multi-stage builds for small images. Base images are pinned to exact versions. Dev files are excluded from final images. Health checks are added for orchestrator use. Containers switch to non-root users. Docker Compose uses named volumes and networks. Resource limits are set in deploy configs.
Multiple Output Formats
Export as YAML, JSON, HCL, or TOML. Kubernetes uses YAML with proper separators. Terraform uses HCL with correct escaping. JSON output has consistent indentation. Copy to clipboard with one click. Preview output with syntax highlighting. Line numbers help you review quickly.
Related Tools
General SSL Configuration Generator
Generate Mozilla-compliant SSL configs for standard web servers.
NGINX Reverse Proxy Generator
Apply your SSL configuration to a full NGINX Reverse Proxy setup.
Let's Encrypt Config Generator
Automate the provisioning of the certificates required by this configuration.