https://github.com/mysqljs/aws-ssl-profiles
AWS RDS SSL certificates bundles.
https://github.com/mysqljs/aws-ssl-profiles
aws bundle ca nodejs rds ssl-certificates
Last synced: 3 months ago
JSON representation
AWS RDS SSL certificates bundles.
- Host: GitHub
- URL: https://github.com/mysqljs/aws-ssl-profiles
- Owner: mysqljs
- License: mit
- Created: 2024-04-10T01:28:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-30T01:20:10.000Z (11 months ago)
- Last Synced: 2025-03-24T02:21:46.334Z (4 months ago)
- Topics: aws, bundle, ca, nodejs, rds, ssl-certificates
- Language: TypeScript
- Homepage:
- Size: 181 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
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).