Go to file
Nemo 1015b85c2c Initial Commit 2019-04-18 20:04:14 +05:30
.gitignore Initial Commit 2019-04-18 20:04:14 +05:30
LICENSE Initial Commit 2019-04-18 20:04:14 +05:30
README.md Initial Commit 2019-04-18 20:04:14 +05:30
index.js Initial Commit 2019-04-18 20:04:14 +05:30
package.json Initial Commit 2019-04-18 20:04:14 +05:30
paths.js Initial Commit 2019-04-18 20:04:14 +05:30
test.js Initial Commit 2019-04-18 20:04:14 +05:30

README.md

find-root-ca-cert

Node package to find the OS-installed root CA certificates. This uses the same location list as go. Based upon this this answer on ServerFault.

Installation

npm install --save find-root-ca-cert

Usage

const certFinder = require("find-root-ca-cert");
certFinder.findCAPath();
// /etc/ssl/certs/ca-certificates.crt
certFinder.findCABundle();
// /etc/ssl/certs/ca-certificates.crt

License

Licensed under the MIT License. See LICENSE file for details.