Go to file
Nemo 17d0086aeb
Create FUNDING.yml
2022-05-30 14:50:05 +05:30
.github Create FUNDING.yml 2022-05-30 14:50:05 +05:30
.gitignore Initial Commit 2019-04-18 20:04:14 +05:30
.npmignore ignore files for dist 2021-06-10 17:19:07 +05:30
LICENSE Initial Commit 2019-04-18 20:04:14 +05:30
README.md Support more platforms 2021-06-10 17:15:00 +05:30
index.js Support more platforms 2021-06-10 17:15:00 +05:30
package.json version bump 2021-06-10 17:17:56 +05:30
paths.js Support more platforms 2021-06-10 17:15:00 +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

Supported Platforms

'aix', 'freebsd', 'linux', 'openbsd', 'sunos'

Unsupported Platforms

'ios', 'darwin', 'win32'

License

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