# aws-ssl-profiles

> AWS RDS SSL certificates bundles.

Latest version **1.1.2** (published 2024-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install aws-ssl-profiles
pnpm add aws-ssl-profiles
yarn add aws-ssl-profiles
bun add aws-ssl-profiles
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2024-08-30 |
| First published | 2024-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 0 |
| Unpacked size | 222.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Author | https://github.com/wellwelwel |
| Maintainers | sidorares, weslley.io |
| Keywords | mysql, mysql2, pg, postgres, aws, rds, ssl, certificates, ca, bundle |

## Links

- npm: https://www.npmjs.com/package/aws-ssl-profiles
- Repository: https://github.com/mysqljs/aws-ssl-profiles
- Homepage: https://github.com/mysqljs/aws-ssl-profiles#readme
- Issues: https://github.com/mysqljs/aws-ssl-profiles/issues
- npm.io page: https://npm.io/package/aws-ssl-profiles

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2024-08-30
- 1.1.1 — 2024-07-15
- 1.1.0 — 2024-07-15
- 1.0.0 — 2024-04-21
- 0.1.0 — 2024-04-17

## README

# AWS SSL Profiles

[**AWS RDS**](https://aws.amazon.com/rds/) **SSL** Certificates Bundles.

**Table of Contents**

- [Installation](#installation)
- [Usage](#usage)
  - [**mysqljs/mysql**](#mysqljsmysql)
  - [**MySQL2**](#mysql2)
  - [**node-postgres**](#node-postgres)
  - [Custom `ssl` options](#custom-ssl-options)
- [License](#license)
- [Security](#security)
- [Contributing](#contributing)
- [Acknowledgements](#acknowledgements)

---

## Installation

```bash
npm install --save aws-ssl-profiles
```

---

## Usage

### [mysqljs/mysql](https://github.com/mysqljs/mysql)

```js
const mysql = require('mysql');
const awsCaBundle = require('aws-ssl-profiles');

// mysql connection
const connection = mysql.createConnection({
  //...
  ssl: awsCaBundle,
});

// mysql connection pool
const pool = mysql.createPool({
  //...
  ssl: awsCaBundle,
});
```

### [MySQL2](https://github.com/sidorares/node-mysql2)

```js
const mysql = require('mysql2');
const awsCaBundle = require('aws-ssl-profiles');

// mysql2 connection
const connection = mysql.createConnection({
  //...
  ssl: awsCaBundle,
});

// mysql2 connection pool
const pool = mysql.createPool({
  //...
  ssl: awsCaBundle,
});
```

### [node-postgres](https://github.com/brianc/node-postgres)

```js
const pg = require('pg');
const awsCaBundle = require('aws-ssl-profiles');

// pg connection
const client = new pg.Client({
  // ...
  ssl: awsCaBundle,
});

// pg connection pool
const pool = new pg.Pool({
  // ...
  ssl: awsCaBundle,
});
```

### Custom `ssl` options

Using **AWS SSL Profiles** with custom `ssl` options:

```js
{
  // ...
  ssl: {
    ...awsCaBundle,
    rejectUnauthorized: true,
    // ...
  }
}
```

```js
{
  // ...
  ssl: {
    ca: awsCaBundle.ca,
    rejectUnauthorized: true,
    // ...
  }
}
```

### Custom bundles

```js
const { proxyBundle } = require('aws-ssl-profiles');

{
  // ...
  ssl: proxyBundle,
}
```

---

## License

**AWS SSL Profiles** is under the [**MIT License**](./LICENSE).

---

## Security

Please check the [**SECURITY.md**](./SECURITY.md).

---

## Contributing

Please check the [**CONTRIBUTING.md**](./CONTRIBUTING.md) for instructions.

---

## Acknowledgements

[**Contributors**](https://github.com/mysqljs/aws-ssl-profiles/graphs/contributors).

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