find-root-ca-cert/README.md

30 lines
695 B
Markdown
Raw Permalink Normal View History

2019-04-18 14:34:14 +00:00
# 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](https://serverfault.com/a/722646) on ServerFault.
## Installation
`npm install --save find-root-ca-cert`
## Usage
```js
const certFinder = require("find-root-ca-cert");
certFinder.findCAPath();
// /etc/ssl/certs/ca-certificates.crt
certFinder.findCABundle();
// /etc/ssl/certs/ca-certificates.crt
```
2021-06-10 11:45:00 +00:00
## Supported Platforms
'aix', 'freebsd', 'linux', 'openbsd', 'sunos'
## Unsupported Platforms
'ios', 'darwin', 'win32'
2019-04-18 14:34:14 +00:00
## License
Licensed under the [MIT License](https://nemo.mit-license.org/). See LICENSE file for details.