Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres native tls does not support client certificates. #1162

Open
linuxuser586 opened this issue Apr 9, 2021 · 3 comments · Fixed by #1850
Open

Postgres native tls does not support client certificates. #1162

linuxuser586 opened this issue Apr 9, 2021 · 3 comments · Fixed by #1850
Labels
db:postgres Related to PostgreSQL
Milestone

Comments

@linuxuser586
Copy link
Contributor

I'm using v0.5.1 of sqlx and it does not work with native TLS due to missing implementation for including client certificates. I have a working implementation in my fork located at https://github.com/linuxuser586/sqlx/tree/postgres-native-tls-fixes. It is currently based on v0.5.1. I'll create a pull request when it is more stable, has tests, and is based on master.

@abonander
Copy link
Collaborator

Blocked on: sfackler/rust-native-tls#209

@abonander abonander added the db:postgres Related to PostgreSQL label Jan 28, 2022
@abonander
Copy link
Collaborator

For RusTLS, the solution in #1166 was acceptable, but it was closed because the author didn't have the time to address the review comments. If someone wants to take that PR, trim it down to just the RusTLS changes and address the nits, we'd gladly merge it.

@smeagolqlo
Copy link

Enabling feature flag "tls-rustls" for sqlx, worked for me thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
db:postgres Related to PostgreSQL
Projects
None yet
3 participants