Skip to content

SSL error: certificate verify failed #212

Closed

Description

@moseleyi

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 

Activity

  1. krlmlr commented on Mar 3, 2019

    @krlmlr
    Member

    Thanks. What happens with sslmode = "disable" ?

  2. daniel-salmon commented on Apr 2, 2019

    @daniel-salmon

    @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?
  3. krlmlr commented on Dec 17, 2019

    @krlmlr
    Member

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

  4. github-actions commented on Dec 17, 2020

    @github-actions
    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.

  5. locked and limited conversation to collaborators on Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions