question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for client certificates

See original GitHub issue

Is there support for client SSL certificates for node-postgres?

Is there some options we can pass to ssl when creating a client?

Thank you!

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
fantapopcommented, Jun 16, 2016

Hi, I was just looking at the code, looks like those args might be incorrect:

https://github.com/brianc/node-postgres/blob/6fddc566f09cf6b5919638a6f69c251e20437b75/lib/connection.js#L79

It appears that the following parameters are passed through:

ssl: {
      rejectUnauthorized,
      ca,
      pfx,
      key,
      passphrase,
      cert,
     NPNProtocols
}
2reactions
brianccommented, Feb 13, 2015

Anything you pass to the config options under the ssl option is passed directly to node:

var config = {
  user: 'brian',
  password: 'i like beans',
  ssl: {
  //all the stuff in this object gets passed STRAIGHT INTO the node tls socket
  }
};

pg.connect(config, function(err, client, done) {
...
});

Does that help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client Certificate Support - Imperva Documentation Portal
Client certificates are supported for websites configured in Imperva for SSL and using a custom certificate. · Client certificates are supported for SNI...
Read more >
Client Certificates vs. Server Certificates - DigiCert
Server or SSL Certificates perform a very similar role to Client Certificates, except the latter is used to identify the client/individual and the...
Read more >
Manage client certificates on ChromeOS devices
Client certificates allow users on ChromeOS devices to access these types of ... Different CAs support different enrollment protocols, such as SCEP and...
Read more >
What Is Client Certificate Authentication? - Jscape
At the start of a SSL or TLS session, the server (if configured to do so) may require the client application to submit...
Read more >
Generate and configure an SSL certificate for backend ...
In the main navigation pane, choose Client Certificates. · From the Client Certificates pane, choose Generate Client Certificate. · Open the API for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found