SSLのためのPostgreSQL™の設定方法については主ドキュメント(日本語版)で説明していますので、ここでは繰り返しません。 SSLが有効なサーバにJavaからアクセスする前に、psqlから行うことができるかどうか確認してください。 SSL接続が確立した場合は以下のような出力が得られます。
$ ./bin/psql -h localhost
Welcome to psql 8.0.0rc5, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
jurka=#