Self-Signed & Private CA Generator

Generate SAN-ready HTTPS certificates for localhost, private IPs, and lab environments, or run your own local Root CA.

Key generation and certificate signing run entirely in your browser. Private keys are never uploaded.

Separate entries with commas or new lines. The primary domain is included automatically.

Advanced options

Frequently asked questions

Why does my browser still show a privacy warning?
Browsers only trust public CAs in the system trust store by default. To clear the warning, use the Private CA mode, install the generated root CA certificate into your operating system trust store, and restart your browser. Valid internal certificates signed by that CA with matching SANs will then be trusted automatically.
Why are SAN entries required, and how long should the validity period be?
Modern browsers (Chrome 58+, Safari, Firefox) validate hostnames against Subject Alternative Names (SAN) rather than Common Name alone. For validity, Apple platforms enforce an 825-day maximum even for user-trusted private certificates, so 365 days is a practical default that balances compatibility and routine rotation. Your private Root CA can safely use 10 years.
What is the difference between a self-signed certificate and a Private CA?
A quick self-signed certificate is convenient for one-off tests, but every new host triggers a separate warning. With a Private CA, you trust the root CA certificate once on your machine or team devices, then switch to "Use Existing CA" whenever you need to sign certificates for additional internal domains or IPs.
Can I generate an HTTPS certificate for a private IP like 192.168.1.10 or 127.0.0.1?
Yes. Enter any IPv4 or IPv6 address in the Common Name or SAN field. The tool detects IP addresses automatically and encodes them as IP SAN entries rather than DNS names, which prevents browser hostname mismatch errors.
How do I convert these PEM files to PFX or JKS for IIS or Tomcat?
Certificates and private keys are exported as standard PEM files ready for Nginx, Apache, and Caddy. If you need PFX (PKCS#12) or JKS, pass the downloaded files to the SSL Certificate Converter to convert them locally in your browser.
How do I generate a self-signed certificate with SAN using OpenSSL?
With OpenSSL 1.1.1 or newer, pass -addext directly instead of writing a custom config file:openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -keyout key.pem -out cert.pem -days 365 -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"For public domains where you should not install a custom root CA, use the Free SSL Certificate Generator to issue a publicly trusted Let's Encrypt certificate instead.