Connect to Postgres via SSL using R

前端 未结 4 968
长发绾君心
长发绾君心 2020-11-30 11:53

I have the same question that was asked here Connect to Redshift via SSL using R

However, the answer given requires certificate validation. I\'m wondering if there i

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 12:18

    Instead of passing verify-full to sslmode, try require or allow:

    dbConnect(dbDriver('PostgreSQL'),
        dbname   = 'dbname=foobar sslmode=require',
        host     = 'foobar.redshift.amazonaws.com',
        port     = 5439,
        user     = 'foobar',
        password = 'foobar')
    

提交回复
热议问题