Détail du package

aws-ssl-profiles

mysqljs6.9mMIT1.1.2

AWS RDS SSL certificates bundles.

mysql, mysql2, pg, postgres

readme

AWS SSL Profiles

AWS RDS SSL Certificates Bundles.

Table of Contents


Installation

npm install --save aws-ssl-profiles

Usage

mysqljs/mysql

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

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

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,
    // ...
  }
}

Custom bundles

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

{
  // ...
  ssl: proxyBundle,
}

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.

changelog

Changelog

1.1.2 (2024-08-30)

Bug Fixes

  • reintroduce default property to improve CJS and ESM interoperability (#26) (567c5a1)

1.1.1 (2024-07-15)

Bug Fixes

1.1.0 (2024-07-15)

Features

1.0.0 (2024-04-21)

Features

  • create profiles (based in MySQL2 3.9.4) (#3) (2a98699)

Bug Fixes