showing results for - "pg ssl settings js"
Amanda
21 Jan 2017
1const config = {
2  database: 'database-name',
3  host: 'host-or-ip',
4  // this object will be passed to the TLSSocket constructor
5  ssl: {
6    rejectUnauthorized: false,
7    ca: fs.readFileSync('/path/to/server-certificates/root.crt').toString(),
8    key: fs.readFileSync('/path/to/client-key/postgresql.key').toString(),
9    cert: fs.readFileSync('/path/to/client-certificates/postgresql.crt').toString(),
10  },
11}
queries leading to this page
pg ssl settings jspg ssl settings js