How to use SSL in Npgsql for Postgre SQL

This article deals with basic connection string related to SSL in Npgsql for Postgre SQL.
  • 2596


SSL stands for Secure Sockets Layer. SSL is predecessor of Transport Layer Security. SSL uses an encryption system which helps in secure movement of data over the internet. To use Secure Sockets Layer use the following connection string.

Server=;Port=5432;Database=User_Database;Userid=Username;Password=User_Password; Protocol=3;SSL=true;SslMode=Require;

NOTE: If a user does not want to use the Secure Socket Layer then he/she may refer to the following connection string:

Server=;Port=5432;Database=User_Database;Userid=Username;Password=User_Password; Protocol=3;SSL=false;SslMode=Disable;

You may also want to read these related articles.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.