trust-cert
Trust Root Certificates in MacOs, Linux, Windows and Firefox (nss)
Installation
NPM
npm i trust-cert
Yarn
yarn add trust-cert
Install Certificate
const certPath = const trust = async { await trust}
Uninstall Certificate
const certPath = const trust = async { await trust}
NSS (Firefox) Certificate Install
Firefox does not use system store, so we package cross-platform nss binaries.
const certPath = const trust = async { await trust}
NSS (Firefox) Certificate Uninstall
Firefox does not use system store, so we package cross-platform nss binaries.
const certPath = const trust = async { await trust}
Note: The tests install the root CA in the certs folder into your store, modify the certs folder if you wish to test with your own cert.
Credits: mkcert