-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no encryption error, but equivalent python code works #485
Comments
Note: providing I can only connect with |
Thanks. Is there any way you could share temporary credentials with me, or perhaps teach me to set up such a database service? |
Sorry , but I can't provide the temporary credentials. I ended up using |
Thanks. Did you connect successfully with RPostgres? Did you need to add |
I was able to successfully connect with RPostgres. I did add My example code: make_db_conn = function(){
pool::dbPool(
RPostgres::Postgres(),
host = config::get("GCP_SQL_DB_HOST"),
dbname = config::get("GCP_SQL_DB_NAME"),
user = config::get("GCP_SQL_DB_USERNAME"),
password = Sys.getenv("GCP_SQL_DB_PASSWORD"),
sslmode = "verify-ca",
sslcert = PATH_TO_CLIENT_CERT,
sslkey = PATH_TO_CLIENT_KEY,
sslrootcert = PATH_TO_SERVER_CA,
port = 5432
)
} Note: the cert files must have |
Works:
The equivalent R code does not work:
The error:
Changing
sslmode
to any of the other possible settings does not help.I'm using a GCP Postgresql database.
The text was updated successfully, but these errors were encountered: