GithubHelp home page GithubHelp logo

Comments (3)

PolGuixe avatar PolGuixe commented on May 12, 2024 1

@geclos thanks! This has resolved the issue. 🎉

from latitude.

PolGuixe avatar PolGuixe commented on May 12, 2024

I have tested a connection to a postgres DB from Heroku (hosted in AWS), and I am getting this error:

Screenshot 2024-03-25 at 21 16 02

source -not real db name, user, pwd -
Screenshot 2024-03-25 at 21 16 27

works fine with Postico and other PG clients from local

from latitude.

geclos avatar geclos commented on May 12, 2024

Hey @PolGuixe ,

TL;DR

Do this:

ssl:
   rejectUnauthorized: false

Long explanation

Your case should already be supported by our Postgres connector.

What is happening is that the default self-signed SSL certificates the postgres connector is using are not supported by your DB. A quick and easy way to fix this is to replace ssl: true with the following:

ssl:
   rejectUnauthorized: false

This will maintain the SSL encryption but will tell your db to not check the certificate validity, which is fine in cases like yours where you control the db and is what most clients do under the hood to simplify configuration for the user. If you want to be more strict and have the db confirm the certificate authority for your SSL connection you can include your OS's CA root store, like so:

ssl:
  ca: /etc/ssl/cert.pem # this path will depend on your operating system

You can check a list of OSs and their CA paths in our docs.

A third solution involves using custom keys and certificates provided by your DB provider but I don't think it's worth getting into it since it's almost surely not your case.

from latitude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.