aws-ssl-profiles
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

AWS SSL Profiles

AWS RDS SSL Certificates Bundles.

Table of Contents


Installation

npm install --save aws-ssl-profiles

Usage

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,
});
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,
});
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:

{
  // ...
  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.


Acknowledgements

Contributors.

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i aws-ssl-profiles

    Weekly Downloads

    69

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    220 kB

    Total Files

    9

    Last publish

    Collaborators

    • sidorares
    • weslley.io