{"name":"aws-ssl-profiles","version":"1.1.1","keywords":["mysql","mysql2","pg","postgres","aws","rds","ssl","certificates","ca","bundle"],"author":{"name":"https://github.com/wellwelwel"},"license":"MIT","_id":"aws-ssl-profiles@1.1.1","homepage":"https://github.com/mysqljs/aws-ssl-profiles#readme","bugs":{"url":"https://github.com/mysqljs/aws-ssl-profiles/issues"},"dist":{"shasum":"21ef8ad77d753927f6c01b144c5ef4cc4f150cdc","tarball":"http://registry-npm.ywwl.com/aws-ssl-profiles/download/aws-ssl-profiles-1.1.1.tgz","fileCount":11,"integrity":"sha512-+H+kuK34PfMaI9PNU/NSjBKL5hh/KDM9J72kwYeYEm0A8B1AC4fuCy3qsjnA7lxklgyXsB68yn8Z2xoZEjgwCQ==","signatures":[{"sig":"MEUCIQCbyYiZtyzsebw0PYNOgrUnlL0A42BbE0qX93q6fCj4xgIgFm/ewDVx8jNMw9qyDRaylU3J18G1dSo6B9RVoTz/q9c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228104,"size":89252,"noattachment":false,"key":"/aws-ssl-profiles/-/aws-ssl-profiles-1.1.1.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","engines":{"node":">= 6.0.0"},"gitHead":"d8f28d397a6b948ac73d90113e1fe67f9265af4e","scripts":{"lint":"npx @biomejs/biome lint && prettier --check .","test":"poku --parallel ./test","build":"npx tsc","pretest":"npm run build","test:ci":"npm run lint && npm run test","lint:fix":"npx @biomejs/biome lint --write . && prettier --write .","postbuild":"cp src/index.d.ts lib/index.d.ts"},"_npmUser":{"name":"weslley.io","email":"w.eslley@ymail.com"},"repository":{"url":"git+https://github.com/mysqljs/aws-ssl-profiles.git","type":"git"},"_npmVersion":"10.7.0","description":"AWS RDS SSL certificates bundles.","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","poku":"^2.0.0","x509.js":"^1.0.0","prettier":"^3.3.3","typescript":"^5.5.3","@types/node":"^20.14.10","@biomejs/biome":"^1.8.3","@types/x509.js":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/aws-ssl-profiles_1.1.1_1721022447801_0.3668274734703558","host":"s3://npm-registry-packages"},"readme":"# AWS SSL Profiles\n\n[**AWS RDS**](https://aws.amazon.com/rds/) **SSL** Certificates Bundles.\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [**mysqljs/mysql**](#mysqljsmysql)\n  - [**MySQL2**](#mysql2)\n  - [**node-postgres**](#node-postgres)\n  - [Custom `ssl` options](#custom-ssl-options)\n- [License](#license)\n- [Security](#security)\n- [Contributing](#contributing)\n- [Acknowledgements](#acknowledgements)\n\n---\n\n## Installation\n\n```bash\nnpm install --save aws-ssl-profiles\n```\n\n---\n\n## Usage\n\n### [mysqljs/mysql](https://github.com/mysqljs/mysql)\n\n```js\nconst mysql = require('mysql');\nconst awsCaBundle = require('aws-ssl-profiles');\n\n// mysql connection\nconst connection = mysql.createConnection({\n  //...\n  ssl: awsCaBundle,\n});\n\n// mysql connection pool\nconst pool = mysql.createPool({\n  //...\n  ssl: awsCaBundle,\n});\n```\n\n### [MySQL2](https://github.com/sidorares/node-mysql2)\n\n```js\nconst mysql = require('mysql2');\nconst awsCaBundle = require('aws-ssl-profiles');\n\n// mysql2 connection\nconst connection = mysql.createConnection({\n  //...\n  ssl: awsCaBundle,\n});\n\n// mysql2 connection pool\nconst pool = mysql.createPool({\n  //...\n  ssl: awsCaBundle,\n});\n```\n\n### [node-postgres](https://github.com/brianc/node-postgres)\n\n```js\nconst pg = require('pg');\nconst awsCaBundle = require('aws-ssl-profiles');\n\n// pg connection\nconst client = new pg.Client({\n  // ...\n  ssl: awsCaBundle,\n});\n\n// pg connection pool\nconst pool = new pg.Pool({\n  // ...\n  ssl: awsCaBundle,\n});\n```\n\n### Custom `ssl` options\n\nUsing **AWS SSL Profiles** with custom `ssl` options:\n\n```js\n{\n  // ...\n  ssl: {\n    ...awsCaBundle,\n    rejectUnauthorized: true,\n    // ...\n  }\n}\n```\n\n```js\n{\n  // ...\n  ssl: {\n    ca: awsCaBundle.ca,\n    rejectUnauthorized: true,\n    // ...\n  }\n}\n```\n\n### Custom bundles\n\n```js\nconst { proxyBundle } = require('aws-ssl-profiles');\n\n{\n  // ...\n  ssl: proxyBundle,\n}\n```\n\n---\n\n## License\n\n**AWS SSL Profiles** is under the [**MIT License**](./LICENSE).\n\n---\n\n## Security\n\nPlease check the [**SECURITY.md**](./SECURITY.md).\n\n---\n\n## Contributing\n\nPlease check the [**CONTRIBUTING.md**](./CONTRIBUTING.md) for instructions.\n\n---\n\n## Acknowledgements\n\n[**Contributors**](https://github.com/mysqljs/aws-ssl-profiles/graphs/contributors).\n","publish_time":1721022447964,"maintainers":[{"name":"sidorares","email":"sidorares@yandex.com"},{"name":"weslley.io","email":"w.eslley@ymail.com"}],"_cnpm_publish_time":1721022447964,"dist-tags":{"latest":"1.1.2"}}