PostgreSQLDatabase.SSLMode

I am using the SSLMode for Postgres as PostgreSQLDatabase.SSLRequire but it will not connect for me at all.

Is there something I am missing for this part?

Thanks,

Tom

The error I am getting is:

received invalid response to SSL negotiation: Y

It was a port issue but now getting this error:

Connection failed!
could not connect to server: Connection refused
Is the server running on host “XXX.XXX.XXX.XXX” and accepting
TCP/IP connections on port 5432?

You may need to configure your pg_hba.conf file to allow tcp/ip connexion from your app server, and to tell pg what port to listen to.

This link may be useful:

This is probably not an SSL issue. Check if you can connect from psql.