Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Web Tools
  3. Self-Signed Certificate Generator
Add to favorites

Self-Signed Certificate Generator

Create a self-signed SSL certificate for local development: host names and IPs that browsers accept, key and .p12 downloads, and server settings.

Runs locally in your browserMore web toolsJump to full guide
Related readingUnderstanding SSL/TLS Certificates: How HTTPS Keeps the Web Secure11 min

Initializing in your browser…

You might also like

CSR Generator

Generate a certificate signing request and private key in your browser, with SANs and RSA or ECDSA keys, checked before you send it to a CA.

Certificate Decoder

Decode any SSL/TLS certificate in your browser: issuer, dates, host names and extensions in plain words, with host checks and chain verification.

SSL Certificate Checker

Check a site's SSL certificate chain for a missing intermediate, wrong order, expiry or name mismatch, with the OpenSSL commands to fetch it.

Self-Signed Certificate Generator: a worked example

You need HTTPS on a local development server at app.example.test, including its subdomains and plain localhost.

Form

Common name        app.example.test
Other names        *.app.example.test, localhost, 127.0.0.1
Key                RSA 2048, SHA-256
Valid for          365 days
What Self-Signed Certificate Generator produces

openssl x509 -in app.example.test.crt -noout -subject -dates -ext ...

subject=CN=app.example.test
notBefore=Oct 21 08:00:00 2026 GMT
notAfter=Oct 21 09:00:00 2027 GMT
X509v3 Basic Constraints: critical
    CA:FALSE
X509v3 Key Usage: critical
    Digital Signature, Key Encipherment
X509v3 Extended Key Usage:
    TLS Web Server Authentication, TLS Web Client Authentication
X509v3 Subject Alternative Name:
    DNS:app.example.test, DNS:*.app.example.test, DNS:localhost, IP Address:127.0.0.1

Made at 09:00 UTC on 21 October 2026, the certificate is valid from an hour earlier, so a slightly slow clock still accepts it, until the same time a year later. The common name is the first entry in the Subject Alternative Name, which is the list browsers actually check, followed by the wildcard (covering api.app.example.test and any other single-level subdomain), localhost and the IPv4 loopback address. The files download as app.example.test.crt and app.example.test.key.

About the Self-Signed Certificate Generator

Make an SSL/TLS certificate for local development in a few seconds: enter the host name, list any other names and IP addresses, and download the certificate and private key, or a .p12 bundle. Ready-to-paste settings for nginx, Apache and Node.js are included, and everything is generated in your browser.

Key features

  • Host names, IP addresses and wildcards in the Subject Alternative Name
  • Names checked as you type, with a preview of the final list
  • RSA 2048, 3072 or 4096 keys and SHA-256, 384 or 512 signatures
  • Server certificate or private certificate authority
  • Private key as PKCS #8 or PKCS #1, plus the public key
  • Password-protected PKCS #12 (.p12) bundle
  • Settings for nginx, Apache and Node.js, and OpenSSL check commands
  • Generated in your browser; nothing is uploaded

How to use

  1. 1Enter the host name as the common name, such as localhost or app.example.test.
  2. 2Add any other host names, IP addresses or wildcards the certificate should cover.
  3. 3Choose the key size, hash and lifetime, or turn on the CA option for a private root.
  4. 4Press Generate certificate and download the certificate and private key, or the .p12 bundle.
  5. 5Add the certificate to your trust store and use the nginx, Apache or Node.js settings shown.

HTTPS for local development

Why a self-signed certificate. Some features only work over HTTPS, such as secure cookies, service workers on a custom host name, or calling an API that refuses plain HTTP. For a development machine, a test server or an internal tool, a certificate you sign yourself is the quickest way to get there. No certificate authority is involved, so nobody else trusts it automatically: you add it to your own system or browser trust store once.

Names that browsers accept. Browsers check the host name against the Subject Alternative Name list only, never the common name. The generator puts the common name into that list when it is a host name, and you can add more: localhost, 127.0.0.1, ::1, other host names and wildcards such as *.app.example.test, which covers one level of subdomains. Each name is checked as you type, so a typo or a space is caught before the certificate is made, and the chips show exactly what will be included.

Key, hash and lifetime. RSA 2048 is quick to generate and accepted everywhere; 3072 and 4096 take longer. SHA-256 is the right signature hash for almost every use. Keep the lifetime at 825 days or less for server certificates, because Apple devices refuse longer ones. The certificate is valid from an hour before it is made, so a clock running slightly behind does not reject it.

A private certificate authority. Turn on the CA option to make a root certificate instead. Add it to your trust store once, then use it to sign server certificates with OpenSSL, so every development certificate it signs is trusted without adding each one.

Files you get. The certificate (.crt), the private key in PKCS #8 or the older PKCS #1 form, the public key, and a password-protected .p12 bundle for Windows, macOS Keychain and Java. A wildcard name is written as wildcard in file names, so the commands work in any shell.

Examples

  • HTTPS on localhost

    Keep the defaults: the certificate covers localhost, 127.0.0.1 and ::1. Trust it once and your local server works over https://localhost.

  • A dev domain with subdomains

    Use app.example.test as the common name and add *.app.example.test, so api.app.example.test and admin.app.example.test are covered too.

  • A team root certificate

    Turn on the CA option, name it something like Team Dev Root, and share the certificate (never the key) for everyone to trust. Server certificates signed with it are then trusted on every machine.

Tips & best practices

  • Add 127.0.0.1 and ::1 alongside localhost so the certificate works however you reach the server.
  • Use a reserved name such as app.example.test or app.localhost for development, never a real domain you do not own.
  • Create one private CA for your team rather than trusting dozens of separate certificates.
  • Keep the private key out of your code repository, even for development.

Frequently asked questions

Why does my browser still warn about the certificate?

A self-signed certificate is not vouched for by any authority your system knows. Add it to your operating system or browser trust store, and make sure the host name you visit is in its list of names.

How do I trust the certificate?

On macOS, open it in Keychain Access, add it to the System keychain and set it to Always Trust. On Windows, import it into Trusted Root Certification Authorities. On Linux, copy it to the system CA folder and run the update command for your distribution. Firefox may need it added in its own settings.

Is it safe to make a private key in a browser?

The key is made by the page in your browser and never uploaded. Treat it like any key: keep it out of source control and do not reuse a development key in production.

Which private key format do I need?

PKCS #8 (BEGIN PRIVATE KEY) works with most current software, including Node.js, Java and Go. PKCS #1 (BEGIN RSA PRIVATE KEY) is the older OpenSSL form that nginx and Apache also accept. Both are the same key.

What is the .p12 password for?

It protects the bundle file. Windows, macOS and Java ask for it on import. The default, changeit, is the usual Java keystore password; set your own if the file will be shared.

How long should the certificate last?

A year is a good default. Apple devices refuse server certificates valid for more than 825 days, even self-signed ones you trust, so stay under that.

Related tools and how they differ

  • Certificate Decoder: Reads the certificate you made back, field by field.
  • CSR Generator: Makes a signing request instead, when a real certificate authority will issue the certificate.
  • PEM/DER Converter: Converts the certificate or key to DER when a program wants binary files.

Further reading

  • Understanding SSL/TLS Certificates: How HTTPS Keeps the Web Secure11 min read

Private by design

This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.