A Node.js wrapper for mkcert that:
Uses the 64-bit release binaries to support Linux, macOS, and Windows.
Creates a root Certificate Authority
Creates locally-trusted TLS certificates for localhost, 127.0.0.1, and ::1
You can use these certificates for local development without triggering self-signed certificate errors.
It should just work™ 🤞
I’d appreciate it if you can help me test it on untested platforms and package managers 🤗
Nodecert is used in Site.js, a personal web tool for human beings (not startups or enterprises) that lets you develop, test, and deploy your secure static or dynamic personal web site with zero configuration.
For more details on how nodecert works behind the scenes, please see the mkcert README.
npm i -g @ind.ie/nodecert
Your certificates will be created in the ~/.small-tech.org/nodecert directory.
Locally-trusted certificates do not work under Firefox. Please use Edge or Chrome on this platform. This is a mkcert limitation
As of version 3.1.1, you can now pass a custom directory for nodecert to use instead of the default (
~/.small-tech.org/nodecert) and the created certificates will be stored there.
const os =
- Linux: certutil (nss) auto-installation has not been tested with yum.
- macOS: certutil (nss) auto-installation has not been tested with MacPorts.
Thanks in advance! 🤓👍 – Aral