Self-Signed Certificate Generator

Create a local SSL certificate for HTTPS.

Click the button to generate a private key (`localhost.key`) and a self-signed certificate (`localhost.crt`) for local development.

About the Certificate Generator

This developer utility generates a 2048-bit RSA private key and a corresponding self-signed certificate. This is incredibly useful for setting up a local development environment with HTTPS. By using a locally-trusted certificate, you can avoid browser security warnings and test features that require a secure context, like Service Workers or certain web APIs.

All cryptographic operations are performed securely in your browser using the Web Crypto API. Your private key is never sent over the network.

How to Use This Tool

  1. Generate: Click the "Generate Certificate & Key" button.
  2. Download: Your browser will download two files: `localhost.key` (your private key) and `localhost.crt` (your certificate).
  3. Configure: Configure your local web server (like Webpack Dev Server, Vite, or Nginx) to use these two files to serve your development site over HTTPS.