Code · Made a little simpler

Self-Signed Certificate Generator

Generate a self-signed X.509 certificate with DNS or IP subject alternative names. Download its certificate and key separately on your device.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Enter one entry per line, such as DNS:workshop.test or IP:127.0.0.1. Enter date and time values in UTC.

The certificate signs itself. A client needs explicit trust to use it for local TLS.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Self-Signed Certificate Generator: how to use it

  1. Choose RSA or ECDSA, then enter a common name and optional organization and country.
  2. Enter the start and end in UTC and at least one line starting with DNS: or IP:. Select Generate certificate.
  3. Review the issuer, expiry and SHA-256 fingerprint, then download the certificate and confirm the separate private key export.

Limits and notes

Creates an X.509 v3 TLS server leaf certificate with a fresh serial number, 1 to 16 DNS or IP alternative names and a UTC validity interval of up to 365 days. Private keys are unencrypted PKCS#8 PEM. A client needs explicit trust for a self-signed certificate.

How your privacy works →

Self-Signed Certificate Generator: common questions

Which fields should contain the host names?

Enter each DNS hostname or IP address that the client will use in the Subject alternative names field. The common name is a separate subject field.

Can I use localhost and the loopback IP together?

Yes. Add DNS:localhost and IP:127.0.0.1 on separate lines. Add IP:::1 for IPv6 loopback.

What tells me I saved the certificate I intended?

Compare the displayed SHA-256 value with the fingerprint of the certificate you saved. It identifies the encoded certificate, which includes the generated public key and serial.

Guides