This blog describes the procedure to enable SSL authentication for a standalone PostgreSQL setup. We can use a self-signed certificate to enable ssl for our Postgres server. In a production environment, use a certificate signed by a certificate authority (CA).