Skip to content

Node package to find the OS-installed root CA certificates. This uses the same location list as golang

License

Notifications You must be signed in to change notification settings

captn3m0/find-root-ca-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.