Convert your SSL certificate to a production-ready Tomcat server.xml configuration.
This tool converts your SSL certificate (PEM format or PFX/PKCS12) into a production-ready Tomcat server.xml Connector configuration. It follows the Mozilla Server Side TLS guidelines — the same standards used by SSL Labs to grade servers.
Tomcat natively uses PFX/PKCS12 format. The generated config includes SSL/TLS protocol settings, cipher suites, keystore configuration, and HSTS headers. Simply paste your certificate or upload a PFX file, select a security profile, and get a copy-paste ready Tomcat config.
keystoreType="PKCS12" for modern Tomcat versions../shutdown.sh && ./startup.sh$CATALINA_HOME/conf/ with restrictive permissions.server.xml or use a custom SSLHostConfig.keystoreFile / keystorePass
Path to the PKCS12 keystore file and its password. Used for the SSL/TLS certificate.
sslProtocol / protocols
Specifies allowed TLS versions. Modern: TLSv1.3. Intermediate: TLSv1.2+TLSv1.3.
ciphers
Comma-separated list of allowed cipher suites for SSL handshake.
SSLHostConfig
Modern Tomcat (8.5+) uses SSLHostConfig elements for fine-grained SSL configuration.
Tomcat typically uses a PKCS12 keystore file. You can upload a PFX file directly, or use this tool to convert PEM files to the required format. The tool generates the server.xml Connector configuration.
Use keytool: keytool -importkeystore -srckeystore cert.p12 -srcstoretype PKCS12 -destkeystore keystore.jks -deststoretype JKS. Or upload your PFX directly to this tool.
Run ./shutdown.sh then ./startup.sh to restart Tomcat with the new SSL configuration.