# trusted-ca

> Nodejs package for loading the system ca-bundle trust certificates into the https globalAgent.

Latest version **0.1.1** (published 2016-08-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install trusted-ca
pnpm add trusted-ca
yarn add trusted-ca
bun add trusted-ca
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-08-31 |
| First published | 2016-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dan Clayton |
| Maintainers | azweb76 |

## Links

- npm: https://www.npmjs.com/package/trusted-ca
- Repository: https://github.com/azweb76/node-trusted-ca
- Homepage: https://github.com/azweb76/node-trusted-ca#readme
- Issues: https://github.com/azweb76/node-trusted-ca/issues
- npm.io page: https://npm.io/package/trusted-ca

## Recent versions

- 0.1.1 (latest) — 2016-08-31
- 0.1.0 — 2016-08-31
- 0.0.4 — 2016-08-31
- 0.0.2 — 2016-08-30
- 0.0.1 — 2016-08-30

## README

# trusted-ca
Nodejs package for loading the system ca-bundle trust certificates into the https globalAgent.

Certificates loaded:
* /etc/pki/tls/certs/ca-bundle.crt
* /etc/ssl/certs/ca-certificates.crt
* /usr/local/etc/openssl/cert.pem
* OSX key chains (System, SystemRootCertificates, requires node v0.11.12+)

> NOTE: If no certs are found, this falls back to nodejs defaults.

## Install
```javascript
npm install trusted-ca --save
```

## Usage
```javascript
'use strict'

const https = require('https');

require('trusted-ca');

const options = {
  hostname: 'mysecuredomain.com',
  port: 443,
  path: '/'
};

const req = https.request(options, res => {
  res.setEncoding('utf8');
  res.on('data', d => {
    console.log('data', d);
  });
});

req.on('error', err => {
  console.log('rats, an error!', err);
});

req.end();

---
_Source: https://npm.io/package/trusted-ca · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
