Question

not - connected { Error: self signed certificate in certificate chain while connecting to postgres

Hi,

I have created a postgres database. I have integrated my backend which is in nodejs with postgres. When i deploy my code on server ,I get below error

not - connected { Error: self signed certificate in certificate chain … Pls guide.

Thanks Swati


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

With TypeORM I have to set the options to:

{
  // other settings
  ssl: {
    rejectUnauthorized: false
  }
}

Hi there,

Is it a Managed PostgreSQL cluster that you are using or is it a PostgreSQL service installed on a Droplet?

Note that with the Managed clusters, you need to set the sslmode to require.

Regards, Bobby