{"name":"aws-ssl-profiles","version":"1.1.0","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.0","homepage":"https://github.com/mysqljs/aws-ssl-profiles#readme","bugs":{"url":"https://github.com/mysqljs/aws-ssl-profiles/issues"},"dist":{"shasum":"f7854213ac3bb55d88ec5ce452351d817d1ba35f","tarball":"http://registry-npm.ywwl.com/aws-ssl-profiles/download/aws-ssl-profiles-1.1.0.tgz","fileCount":11,"integrity":"sha512-5HcV4J4dvPcD6NEhx1C3Gqt7GCU1gOFyNMRXcHF+IeEn+rbKiwk9jwu4ziEtkT5RAKJ3nPzNhQ3FjLOgLFnwCQ==","signatures":[{"sig":"MEQCIGj4KUoX76h77RGB5rPRdbOQSBIQ2db6WU9L8kzO2BVPAiAkHTxltxq4Jj6ojfdTBxa8qsqiGn79Yu/6cd63ZsKHAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":227860,"size":89195,"noattachment":false,"key":"/aws-ssl-profiles/-/aws-ssl-profiles-1.1.0.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","engines":{"node":">= 6.0.0"},"gitHead":"becb048901083d1c5b806cafce91dd2f96f9e8d7","scripts":{"lint":"npx @biomejs/biome lint && prettier --check .","test":"poku --parallel ./test","build":"npx tsc","test:ci":"npm run lint && npm run build -- --noEmit && npm run test","lint:fix":"npx @biomejs/biome lint --write . && prettier --write ."},"_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","@biomejs/biome":"^1.8.3","@types/x509.js":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/aws-ssl-profiles_1.1.0_1721012956014_0.14544327071393015","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":1721012956162,"maintainers":[{"name":"sidorares","email":"sidorares@yandex.com"},{"name":"weslley.io","email":"w.eslley@ymail.com"}],"_cnpm_publish_time":1721012956162,"dist-tags":{"latest":"1.1.2"}}