In AWS RDS postgresql server side ssl has been forced using below config values.
rds.force_ssl 1
ssl 1
When I am trying to connect to postgres RDS host without specifying the sslmode and sslrootcert, it is allowing the ssl connection.
psql -h hostname.us-east-1.rds.amazonaws.com -p 5432 --user=username
psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1), server 10.6)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
username=>
Since I did not specify the sslmode, it has taken default sslmode which is prefer. I would like to know:
- How is it encrypting the data in transit to the server?
- How is it selecting ssl protocol, ssl cipher and compression before sending the data packets to server?
- Since I am not specifying any sslrootcert, is it taking any default cert for ssl handshake with server?
Please explain.