YourTools.
简体中文
Back to the catalog
Tools

Self-signed certificate

Create a self-signed TLS certificate and private key for development and testing from host names and IP addresses, one per line. The key is generated in the browser.

Process locally

Files stay in this browser session. Closing or clearing releases them.

Add text

Type or paste the text to process

Adjust settings

Optional: Key type, Valid for, Organization

Self-signed certificate

Run

Processes in this browser; cancel at any time

Add text first

About this tool

Create a self-signed TLS certificate and its private key for local development and testing, for example to serve https://localhost, to test a service on an internal IP address, or to try out HTTPS settings before you have a real certificate.

Enter up to 100 host names or IP addresses, one per line: the first becomes the common name (CN), and all of them go into the subject alternative names (SAN). Wildcards such as *.example.test and internationalized domain names work. The key is ECDSA P-256 or P-384, or RSA 2048 to 4096, generated in your browser and not uploaded.

How to use it

  1. Enter host names and IP addresses, one per line, or select Use example to load localhost, 127.0.0.1, ::1 and dev.example.test.
  2. Choose the “Key type” (ECDSA P-256 by default) and how many days the certificate is “Valid for” (1 to 3650, 365 by default).
  3. Optionally enter an “Organization”.
  4. Select Run, then download certificate.pem and private-key.pem, or both together as a ZIP.

Formats and limits

Input
Text
Output
PEM
Size limit
64 KB
Settings
Key type (ECDSA P-256, ECDSA P-384, RSA 2048, RSA 3072, RSA 4096); Valid for; Organization
Privacy
Files stay in the current browser session. No file bytes are uploaded.
Price
Free, no sign-up

Common questions

Why does the browser still show a warning?

No public CA vouches for a self-signed certificate, so browsers warn until you trust it on that device, for example by importing certificate.pem into the system or browser certificate store. Do this only on machines you use for development.

What does the certificate contain?

It is an X.509 v3 certificate signed with SHA-256 (SHA-384 for P-384), marked as not a CA, for server and client authentication, with the key usage digitalSignature (plus keyEncipherment for RSA). It becomes valid one minute before it is created and has a random serial number.

Which key type should I choose?

ECDSA P-256 is the default and generates quickly. Choose RSA if the software you test with needs an RSA key; RSA 4096 is noticeably slower to generate.

In which format are the files?

certificate.pem holds the certificate (BEGIN CERTIFICATE), and private-key.pem the unencrypted private key in PKCS #8 (BEGIN PRIVATE KEY), PEM files that servers such as nginx take directly. To inspect the certificate, paste it into the “Certificate decoder”.

Which entries are accepted?

Host names, which are lowercased and converted to punycode if they contain non-ASCII characters, a leading *. wildcard, IPv4 addresses, and IPv6 addresses with or without brackets. Empty lines and duplicates are skipped, and an invalid entry stops the run and is named in the error.