How does libpq from postgresql load SSL root certificates and how can you mirror that behavior in node.js?

Well, here's waaaaay too much information: github.com/mastodon/mastodon/p

Yes, I had to checkout the postgresql source code and reference the openssl API docs and Node.js source code to work this out.

1

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/thisismissem/statuses/114484378056904317 on your instance and quote it. (Note that quoting is not supported in Mastodon.)