Upload or paste your PEM certificate and get production-ready SSL configs for Nginx, Apache, Tomcat, HAProxy, Caddy, and IIS.
Server block with SSL, HTTP/2, OCSP, HSTS, redirect.
VirtualHost with mod_ssl, cert/key/chain files.
Frontend SSL with combined PEM, ALPN, headers.
NIO connector, PKCS12 keystore, TLS protocols.
Caddyfile with auto HTTPS and security headers.
web.config with SSL flags and rewrite rules.
The PEM to Server Config tool converts your SSL certificate into production-ready configuration files for the most popular web servers. Paste or upload your PEM certificate (and optional private key/chain), select a Mozilla security profile, and instantly get copy-paste ready configs for Nginx, Apache, HAProxy, Caddy, Tomcat, and IIS.
The tool automatically extracts domain names, SANs, key type, and issuer information from your certificate. It follows the Mozilla Server Side TLS guidelines — the industry standard for server security. Choose between Modern (TLS 1.3 only), Intermediate (TLS 1.2 + 1.3), or Old (legacy) profiles.
cat cert.pem key.pem > combined.pemopenssl pkcs12 -export -in cert.pem -inkey key.pem -out keystore.p12Modern
TLS 1.3 only. Strongest cryptography. No backward compatibility. Requires clients from 2020+.
Intermediate (Recommended)
TLS 1.2 + 1.3. Works with all browsers since 2014. Default for 99% of public websites.
Old
TLS 1.0+. Only for legacy clients like Windows XP IE8 or Android 2.3. Not recommended.
Modern: No cipher config needed (TLS 1.3 handles it). Intermediate: ECDHE+AESGCM, ECDHE+CHACHA20, DHE+AESGCM. Old: Adds AES-CBC for legacy compatibility.
.crt Server certificate, .key Private key, -chain.crt Intermediate certificates, -fullchain.pem Cert + chain combined, .conf Server-specific config file.
Modern uses TLS 1.3 only — strongest security but requires recent clients. Intermediate supports TLS 1.2 + 1.3 and works with all browsers since 2014 — this is the recommended choice for most websites. Old includes TLS 1.0/1.1 for legacy clients and is not recommended.
No. The tool generates server configs that reference file paths for the cert and key. You only need to paste the certificate for config generation. The private key is used for the downloadable key file and fullchain.
The chain certificate (also called intermediate certificate) links your server certificate to the root CA. Browsers need this to build the trust chain. If you paste a fullchain PEM (cert + intermediates), the tool auto-detects and splits them.
Yes — the Intermediate profile with HSTS enabled will earn an A+ grade when paired with a valid 2048+ bit certificate. After deploying, test with our SSL Checker to verify your configuration.
HAProxy requires cert + key in a single PEM file. Download the -fullchain.pem for cert + chain, then concatenate with the key: cat fullchain.pem key.pem > haproxy.pem