{"library":"pg-ssl","type":"library","category":null,"description":"A utility for parsing libpq-style environment variables into SSL configuration for node-postgres (pg). As of v0.0.1, it bridges a gap where node-postgres ignores SSL-related environment variables like PGSSLMODE, PGSSLROOTCERT, PGSSLCERT, and PGSSLKEY. It reads these env vars to produce the `ssl` object expected by `new Pool()`, including ca, cert, key, and rejectUnauthorized. Supports custom overrides, servername for SNI, and checkServerIdentity callback. Particularly useful for cloud SQL connections (e.g., Google Cloud SQL, AWS RDS) that require certificate-based TLS. Lightweight, no dependencies, and works with both ESM and CJS.","language":"javascript","status":"active","version":"0.0.1","tags":["javascript","pg","ssl","node-postgres","postgres","postgresql","tls","pgsslrootcert","pgsslcert"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-ssl","imports":["import { parseSsl } from 'pg-ssl'"]},{"cmd":"yarn add pg-ssl","imports":[]},{"cmd":"pnpm add pg-ssl","imports":[]}],"homepage":"https://github.com/programmarchy/pg-ssl#readme","github":"ssh://git@github.com/programmarchy/pg-ssl","docs":null,"changelog":null,"pypi":null,"npm":"pg-ssl","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}