Self-Signed Certificate Generator.
Create a self-signed X.509 TLS certificate and private key (ECDSA or RSA) with SANs for localhost or a dev CA.
Runs in your browserAbout Self-Signed Certificate Generator
A self-signed certificate lets you run HTTPS on localhost, a staging box, an internal dashboard or a test harness without asking a public certificate authority. This generator builds the same thing as openssl req -x509 -newkey: a fresh private key and an X.509 version 3 certificate signed by that key, both in PEM format for Nginx, Apache, Node.js, Docker, Kubernetes secrets or Java keystores. Enter the common name and the subject alternative names — host names, wildcard names like *.dev.example.com, IPv4 and IPv6 addresses — and the tool adds the extensions modern clients check: basic constraints, key usage, extended key usage for server and client authentication, and key identifiers. For example, CN localhost with SANs 127.0.0.1 and ::1 gives a certificate that Chrome, Firefox and curl accept once you trust it. Turn on CA to create a small root for signing your own development certificates. ECDSA P-256 is the default because it is fast and universally supported; RSA 2048 is available for older software and takes a few seconds to generate. You can also paste an existing private key to reuse it. Common mistakes: relying on the common name alone (browsers ignore it without a SAN), choosing more than 398 days for a server certificate (Apple platforms and browsers reject it), forgetting to import the certificate into the system trust store, and using self-signed certificates in production. Keys and certificates are created locally; nothing is uploaded.
How to Use
- Enter the common name and any extra host names or IP addresses.
- Choose the key type and validity, and switch on CA if you need a root certificate.
- Copy the certificate and private key into your server configuration and trust the certificate locally.
Frequently Asked Questions
Why does my browser still show a warning?
A self-signed certificate is trusted only after you add it to your operating system or browser trust store. Also make sure the host name you open is listed in the SANs.
Which key type should I choose?
ECDSA P-256 for almost all servers and clients. Choose RSA 2048 only for software that cannot use elliptic-curve keys.
How long can the certificate be valid?
Up to ten years here. For TLS server certificates keep it at 398 days or less, because Apple platforms and current browsers reject longer ones.
Is my private key sent to a server?
No. The key and certificate are generated in your browser, also offline in the app, and are not uploaded or stored in the URL.
Related Tools
Generate a PKCS#10 certificate signing request with SANs and a new or existing ECDSA / RSA private key.
Decode PEM or DER certificates to see subject, issuer, validity, SANs, key and extensions.
Generate RSA, ECDSA (P-256, P-384, P-521) and Ed25519 key pairs as PEM (PKCS#8 / SPKI) or JWK.
Check a server's TLS certificate - expiry, chain trust, host name match, key and protocol.
Decode a PKCS#10 certificate signing request and check its subject, SANs and key before you order.
Generate Ed25519, ECDSA or RSA SSH keys in OpenSSH format with fingerprint and randomart.