{"name":"aws-ssl-profiles","version":"0.1.0","author":{"name":"https://github.com/wellwelwel"},"license":"MIT","_id":"aws-ssl-profiles@0.1.0","homepage":"https://github.com/mysqljs/aws-ssl-profiles#readme","bugs":{"url":"https://github.com/mysqljs/aws-ssl-profiles/issues"},"dist":{"shasum":"5d5ff77c40aeda8b615e1b3495ac99361a0e9988","tarball":"http://registry-npm.ywwl.com/aws-ssl-profiles/download/aws-ssl-profiles-0.1.0.tgz","fileCount":9,"integrity":"sha512-P9e9Kh4Blfps90k24J/9HQUzndnNME+bnZ4vysDCD9bIwYAL0v5BMnu6j4+aJO5W2vZ3a/R+xrXY3irRrUKatA==","signatures":[{"sig":"MEUCIGaGA2rkkFNRXR2C6SIj8JbR6wF262TCL+Ukw9uXWgKHAiEAg5BN4riiTdh0S6fWJBnPrO5nAhDl8tpiel+RgmtvL68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":218070,"size":85526,"noattachment":false,"key":"/aws-ssl-profiles/-/aws-ssl-profiles-0.1.0.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","engines":{"node":">= 6.0.0"},"gitHead":"ffdaf1ddd74283a4f02d26a93e245afa1e4cfd82","scripts":{"lint":"eslint . --ext .js,.ts && prettier --check .","test":"poku --parallel ./test","build":"npx tsc","test:ci":"npm run lint && npm run build -- --noEmit && npm run test","lint:fix":"eslint . --fix --config ./.eslintrc.json && 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.5.2","description":"AWS RDS certificates bundles.","directories":{},"_nodeVersion":"21.7.3","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.2","poku":"^1.9.3","eslint":"^8.57.0","x509.js":"^1.0.0","prettier":"^3.2.5","typescript":"^5.4.5","@types/node":"^20.12.7","@types/x509.js":"^1.0.3","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.7.0","@typescript-eslint/eslint-plugin":"^7.7.0","eslint-import-resolver-typescript":"^3.6.1"},"_npmOperationalInternal":{"tmp":"tmp/aws-ssl-profiles_0.1.0_1713367407436_0.1959272391632494","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":1713367407641,"maintainers":[{"name":"sidorares","email":"sidorares@yandex.com"},{"name":"weslley.io","email":"w.eslley@ymail.com"}],"_cnpm_publish_time":1713367407641,"dist-tags":{"latest":"1.1.2"}}