Skip to content
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

SSL error: certificate verify failed #212

Closed
moseleyi opened this issue Feb 25, 2019 · 4 comments
Closed

SSL error: certificate verify failed #212

moseleyi opened this issue Feb 25, 2019 · 4 comments

Comments

@moseleyi
Copy link

We have a .Rprofile file with simple function to connect to Redshift. Everybody uses it and it failes on Windows 10 for some reason:

DBI::dbConnect(
        RPostgres::Postgres(),
        user = Sys.getenv('REDSHIFT_USER'),
        password = Sys.getenv('REDSHIFT_PASS'),
        host = Sys.getenv('REDSHIFT_HOST'),
        dbname = Sys.getenv('REDSHIFT_DBNAME'),
        port = Sys.getenv('REDSHIFT_PORT'),
        sslmode = 'require',
        sslrootcert = 'C:\\Users\\U\\R\\postgres\\server.crt'
    )

I tried sslmode = verify-full, sslmode = verify-ca but I'm getting the same error:

Error in connection_create(names(opts), as.vector(opts)) : 
 SSL error: certificate verify failed 
@krlmlr
Copy link
Member

krlmlr commented Mar 3, 2019

Thanks. What happens with sslmode = "disable" ?

@daniel-salmon
Copy link

@moseleyi:

  • Can you verify that SSL is indeed enabled on your Redshift cluster?
  • Do you encounter the same error when attempting to connect via psql on Windows 10?
  • If you attempt to connect with the R odbc driver implementation with SSL set to require in your configuration are you successful?

@krlmlr
Copy link
Member

krlmlr commented Dec 17, 2019

We don't currently support Redshift very well. Closing in favor of #215.

@krlmlr krlmlr closed this as completed Dec 17, 2019
@github-actions
Copy link
Contributor

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants