How to Authenticate to Postgres from Rails using an SSL certificate.
In this post, I'll walk you through connecting Rails to Postgres, using an SSL/TLS certificate. We'll also cover how to keep the private key secure when using Rails on a cloud platform, like Heroku.
Certificates
We need three files for authentication...
codemeister.dev5 min read