Howtoforge published a tutorial about how to enabling SSL for PostgreSQL connections.
How to Enable SSL for PostgreSQL connections
By default, all PostgreSQL connections are insecure, which can cause security issues when run in high-traffic production environments. SSL encryption ensures that any data transferred is not intercepted by anyone in the middle of a connection.
This tutorial will teach you how to enable SSL/TLS for PostgreSQL connections.