Certificates · Browser-local generation
Self-Signed Certificate Generator
Create an X.509 certificate and matching private key for local HTTPS, internal services, and TLS testing. Include the DNS names and IP addresses your clients actually use.
Native Web Crypto · No uploads · No saved history
2. Review and save
The signature was checked with the generated public key. This confirms the self-signature, not identity or client trust.
- Subject / issuer CN
- Key / signature
- Purpose
- Valid from (UTC)
- Valid until (UTC)
- Serial (hex)
- Names (SANs)
- SHA-256 fingerprint
Private key · PKCS#8 PEM
The tool makes no network requests and does not save inputs or keys in browser storage. Reset or reload discards the tool's references; JavaScript cannot guarantee memory zeroization or erase downloaded files or clipboard copies.
Inspect the files with OpenSSL
Downloads use fixed filenames. Run these commands locally in the directory containing them. The trust check below explicitly trusts this certificate for that command only.
openssl x509 -in certificate.crt -noout -text openssl x509 -in certificate.crt -noout -fingerprint -sha256 openssl pkey -in private-key.pem -check -noout openssl verify -check_ss_sig -CAfile certificate.crt certificate.crt
To encrypt the private key locally, this command prompts for an encryption password:
openssl pkcs8 -topk8 -v2 aes-256-cbc -in private-key.pem -out encrypted-private-key.pem
Use a self-signed certificate deliberately
Names and trust are separate checks
For a server certificate, include every hostname and IP used to connect. DNS names go into dNSName SANs; addresses go into iPAddress SANs. A wildcard covers one label, so *.example.test does not cover example.test or a.b.example.test. A correct name still needs explicit trust in the connecting client.
Keep trust narrow and lifetimes short
Configure a specific application's trust or certificate pinning when supported. Do not disable TLS verification or teach users to bypass warnings. This tool does not install certificates, create a CA, provide revocation, or issue publicly trusted certificates. If a private key leaks, replace the certificate and key, and remove the old trust configuration.
What is generated?
A fresh key pair, random positive 128-bit serial, and X.509 v3 certificate with matching subject and issuer. Extensions include critical basic constraints (CA:FALSE), critical key usage, your selected TLS purpose, SANs, and matching subject/authority key identifiers. ECDSA uses digitalSignature; RSA server certificates also include keyEncipherment. Validity is capped at 365 days by this tool, not as a claim about public-CA rules.
Formats follow RFC 5280 and RFC 5758. Key generation, signing, verification, and hashing use the browser's Web Crypto API. Client policy and software support may impose additional requirements.