Can't create dbConnect to Postgres with SSL
问题 I'm running a Postgres-9.4 server that I would like to require SSL for. When I connect to the Postgres server from my laptop with either pgadmin or windows odbc connection, it works with SSL. However when I try to connect with R using SSL it fails. library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, user = "postgres", password = mypasswd, dbname = "dbname=postgres sslmode=prefer", host = "192.168.1.179") If I set my pg_hba.conf to allow non-ssl connections then this will