SSL connection to AWS RDS Postgres
Posted: Fri 25 Sep 2020 14:41
I am trying to connect Postgres hosted as RDS service.
If I don't use SSL the connections works ok. Also I have been able to use the SSL connection with psql command-line client (using sslmode=verify-ca) and pgAdmin too. So server configuration should be ok.
My connection string looks like:
(I don't know if the a rds-ca-2019-root.pem is enough or if I need the combined one, but I tried with both. Also unsure if I need double escape for \ so I tried both)
The error I get always when "Test Connection" is "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Inner error: An existing connection was forcibly closed by the remote host.".
Situation looks a bit same as this:
viewtopic.php?t=33971
If I don't use SSL the connections works ok. Also I have been able to use the SSL connection with psql command-line client (using sslmode=verify-ca) and pgAdmin too. So server configuration should be ok.
My connection string looks like:
Code: Select all
User Id=user;Password=*****;Host=xxx.rds.amazonaws.com;Database=dbname;Unicode=True;Persist Security Info=True;SSLMode=Require;SSL CA Cert=C:\rds-combined-ca-bundle.pem
The error I get always when "Test Connection" is "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Inner error: An existing connection was forcibly closed by the remote host.".
Situation looks a bit same as this:
viewtopic.php?t=33971