[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Connecting to PostgreSQL-server using PGAdmin via SSL

Posted on 2009-04-09
1
Medium Priority
?
1,277 Views
Last Modified: 2012-08-13
I would like to connect to a postgresql-server using PGAdmin instead of phpPgAdmin. It is not so difficult to open a port, and limit the connection to my own ip-address. Is it possible to require that the connection uses SSL, while the internal connection (from the webserver) doesn't do this? Any other tips? Is this secure enough?
0
Comment
Question by:R7AF
1 Comment
 
LVL 22

Accepted Solution

by:
earth man2 earned 2000 total points
ID: 24106359
see
http://www.postgresql.org/docs/8.3/static/auth-pg-hba-conf.html

each record  in file pg_hba.conf can have one of the seven formats

local      database  user  auth-method  [auth-option]
host       database  user  CIDR-address  auth-method  [auth-option]
hostssl    database  user  CIDR-address  auth-method  [auth-option]
hostnossl  database  user  CIDR-address  auth-method  [auth-option]
host       database  user  IP-address  IP-mask  auth-method  [auth-option]
hostssl    database  user  IP-address  IP-mask  auth-method  [auth-option]
hostnossl  database  user  IP-address  IP-mask  auth-method  [auth-option]

your internal connection uses "local" authentication format
your PGAdmin will require an entry with "hostssl"
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like regular user of computer nowadays, a good bet that your home computer is on right now, all exposed to world of Internet to be exploited by somebody you do not know and you never will. Internet security issues has been getting worse d…
Do you have a windows based Checkpoint SmartCenter for centralized Checkpoint management?  Have you ever backed up the firewall policy residing on the SmartCenter?  If you have then you know the hassles of connecting to the server, doing an upgrade_…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question