Hi @Ramkumar Sarva Radhakrishnan
To configure postgreSQL using SSL connection follow the below steps.
- Configure TLS connectivity in Azure Database for PostgreSQL - Single Server
- How do I know if I'm using SSL/TLS with root certificate verification
Connect using psql
If you created your flexible server with Private access (VNet Integration), you will need to connect to your server from a resource within the same VNet as your server. You can create a virtual machine and add it to the VNet created with your flexible server.
If you created your flexible server with Public access (allowed IP addresses), you can add your local IP address to the list of firewall rules on your server.
psql "sslmode=verify-full sslrootcert=c:\ssl\DigiCertGlobalRootCA.crt.pem host=mydemoserver.postgres.database.azure.com dbname=postgres user=myadmin"
Please don’t forget to Accept the answer
and up-vote wherever the information provided helps you, this can be beneficial to other community members.