Connect to PostgreSQL with SSL + self-signed certificate
See original GitHub issueDescribe 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:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
Documented SSL: https://tortoise-orm.readthedocs.io/en/latest/databases.html#passing-in-custom-ssl-certificates