How to use SSL in Npgsql for Postgre SQL

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

Introduction

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=127.1.1.1;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=127.1.1.1;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

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.