@diotoborg/consequatur-sunt
v5.3.98
Published
[**AWS RDS**](https://aws.amazon.com/rds/) **SSL** Certificates Bundles.
Downloads
2,073
Maintainers
Keywords
Readme
AWS SSL Profiles
AWS RDS SSL Certificates Bundles.
Table of Contents
Installation
npm install --save @diotoborg/consequatur-sunt
Usage
mysqljs/mysql
const mysql = require('mysql');
const awsCaBundle = require('@diotoborg/consequatur-sunt');
// mysql connection
const connection = mysql.createConnection({
//...
ssl: awsCaBundle,
});
// mysql connection pool
const pool = mysql.createPool({
//...
ssl: awsCaBundle,
});
MySQL2
const mysql = require('mysql2');
const awsCaBundle = require('@diotoborg/consequatur-sunt');
// mysql2 connection
const connection = mysql.createConnection({
//...
ssl: awsCaBundle,
});
// mysql2 connection pool
const pool = mysql.createPool({
//...
ssl: awsCaBundle,
});
node-postgres
const pg = require('pg');
const awsCaBundle = require('@diotoborg/consequatur-sunt');
// 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:
{
// ...
ssl: {
...awsCaBundle,
rejectUnauthorized: true,
// ...
}
}
{
// ...
ssl: {
ca: awsCaBundle.ca,
rejectUnauthorized: true,
// ...
}
}
License
AWS SSL Profiles is under the MIT License.
Security
Please check the SECURITY.md.
Contributing
Please check the CONTRIBUTING.md for instructions.