ts-postgres icon indicating copy to clipboard operation
ts-postgres copied to clipboard

Update Readme for SSL Config Option

Open R-K-H opened this issue 4 years ago • 5 comments

Heyo, I'm back.

Struggled a bit to disable SSL as it wasn't described in the readme, just thought I'd highlight that for future users :)

R-K-H avatar Apr 22 '22 21:04 R-K-H

The default is currently PREFER so that it will choose SSL if it is available, but accept a non-encrypted connection as well.

malthe avatar Apr 23 '22 19:04 malthe

Understood, it kept disconnecting for me and then I was scratching my head for a long while before I was like I wonder if it has something to do with SSL and didn't notice it was an option.

R-K-H avatar Apr 23 '22 23:04 R-K-H

Do you know how your PostgreSQL instance is configured with regards to SSL? Like why does it disconnect?

malthe avatar Apr 24 '22 06:04 malthe

I was first using GCP for a little side project and it was giving me errors with SSL (not sure how to include certificates with this library either) and then setup a Digital Ocean cluster with a similar result.

I’ll see if I can go back into any logs and retrieve them.

On Sun, Apr 24, 2022 at 02:32 Malthe Borch @.***> wrote:

Do you know how your PostgreSQL instance is configured with regards to SSL? Like why does it disconnect?

— Reply to this email directly, view it on GitHub https://github.com/malthe/ts-postgres/issues/55#issuecomment-1107752335, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHWAM4RV6QFPQ7REFPQTWTVGTTGTANCNFSM5UDNMA2Q . You are receiving this because you authored the thread.Message ID: @.***>

-- Sent from mobile device

R-K-H avatar Apr 24 '22 06:04 R-K-H

GCP would presumably sign the certificate with a well-known root CA, so you should be fine out of the box with that one.

malthe avatar Apr 24 '22 06:04 malthe

There's been some work since this issue was opened to better document SSL options. I'll close it out and feel free to reopen if there are other questions about how it works.

malthe avatar Feb 28 '24 22:02 malthe