fastify-tls-keygen
Fastify plugin to automatically generate a browser-compatible, trusted, self-signed, localhost-only, TLS certificate.
Chrome | Safari | Edge | Firefox | |
---|---|---|---|---|
MacOS | ✅ | ✅ | ||
Windows | ✅ | ✅ | ||
Linux | ✅ | ✅ |
Installation
npm install fastify-tls-keygen
Usage
const fastify = // Required: Enable TLS https: true // Optional: Enable HTTP/2 http2: true fastify // Tip: Port 443 (HTTPS) requires root permissions. Use a port >1024.fastify
See Also
- tls-keygen @ NPM
- self-cert @ NPM
- LetsEncrypt
Colophon
Made with 💝 by Sebastiaan Deckers in 🇸🇬 Singapore.