question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect to PostgreSQL with SSL + self-signed certificate

See original GitHub issue

Describe the bug I’m trying to connect to a PostgreSQL database that has SSL enabled on. Also it has self-signed certificate.

To Reproduce Try to connect to PostgreSQL DB with SSL and self-signed certificate.

Expected behavior Allow to pass ssl.SSLContext into Tortoise.init.

Additional context I’ve found #150, but it can’t resolve my problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lxmnkcommented, Dec 2, 2019

Oh, I’m sorry. I’ve really rewrite code incorrectly. Now app successfully connected to DB. Also I’ve created some objects for test. Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

9.1: Secure TCP/IP Connections with SSL - PostgreSQL
A self-signed certificate can be used for testing, but a certificate signed by a certificate authority ( CA ) (either one of the...
Read more >
SSL POSTGRES connection with self-signed certificate
I'm trying to make a SSL connection between my computer and a Postgresql instance on a different server. To do that, I've worked...
Read more >
Create and Install Client and Server SSL Certificates for ...
To verify a PostgreSQL server's identity, we can install either a self-signed or CA-signed certificate and private key on the server. The client ......
Read more >
Generate self-signed SSL certificates for PostgreSQL server ...
Generate client certificates to be used by clients/connections · Create a Certificate Signing Request (CN=db-user) · Create a signed certificate for the client ......
Read more >
How to connect to PostgreSQL over SSL using self signed ...
How to connect to PostgreSQL over SSL using self signed certificate. In the connection wizard, when configuring the PostgreSQL database, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found