{"name":"aws-ssl-profiles","version":"1.1.2","main":"lib/index.js","author":{"name":"https://github.com/wellwelwel"},"description":"AWS RDS SSL certificates bundles.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/mysqljs/aws-ssl-profiles.git"},"bugs":{"url":"https://github.com/mysqljs/aws-ssl-profiles/issues"},"devDependencies":{"@biomejs/biome":"^1.8.3","@types/node":"^22.5.1","@types/x509.js":"^1.0.3","poku":"^2.5.0","prettier":"^3.3.3","tsx":"^4.19.0","typescript":"^5.5.4","x509.js":"^1.0.0"},"engines":{"node":">= 6.0.0"},"keywords":["mysql","mysql2","pg","postgres","aws","rds","ssl","certificates","ca","bundle"],"scripts":{"build":"npx tsc","postbuild":"cp src/index.d.ts lib/index.d.ts","lint":"npx @biomejs/biome lint && prettier --check .","lint:fix":"npx @biomejs/biome lint --write . && prettier --write .","pretest":"npm run build","test":"poku --parallel ./test","test:ci":"npm run lint && npm run test"},"_id":"aws-ssl-profiles@1.1.2","gitHead":"98d7cf207ea071b9b093c0fa3597d0902f028805","types":"./lib/index.d.ts","homepage":"https://github.com/mysqljs/aws-ssl-profiles#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==","shasum":"157dd77e9f19b1d123678e93f120e6f193022641","tarball":"http://registry-npm.ywwl.com/aws-ssl-profiles/download/aws-ssl-profiles-1.1.2.tgz","fileCount":11,"unpackedSize":228109,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/aws-ssl-profiles@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCu3Gc86Cy8OcSftHa5BUx8uXfL0uqvHW1ah4KLtB3TQIgP/4MybsNpUIv3yFjv3XMKUgfC+wWe8545UFLT9uVH/A="}],"size":89249,"noattachment":false,"key":"/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz"},"_npmUser":{"name":"weslley.io","email":"w.eslley@ymail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-ssl-profiles_1.1.2_1724980822724_0.8019137951705613"},"_hasShrinkwrap":false,"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":1724980822868,"maintainers":[{"name":"sidorares","email":"sidorares@yandex.com"},{"name":"weslley.io","email":"w.eslley@ymail.com"}],"_cnpm_publish_time":1724980822868,"dist-tags":{"latest":"1.1.2"}}