Skip to content

Add sslmode verify-ca and verify-full #1

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

Closed
wants to merge 3 commits into from

Conversation

uce
Copy link

@uce uce commented May 18, 2021

This is the same code as currently PR'd to the upstream project except that it's based on our forked HEAD.

I'm opening this as a draft until the upstream PR is merged/rejected...

uce added 3 commits May 18, 2021 11:53
When a connection is established, the added modes are treated in the
same way as the existing `require` mode as they both require a TLS
connection.

It's the responsibility of the user to configure the TLS stream to match
the semantics of Postgres client (e.g. enable peer cert verification).
Adds a convenience constructor that creates a `MakeTlsConnector` that
matches the semantics of Postgres clients.

Check out https://www.postgresql.org/docs/current/libpq-ssl.html for
more details on the expected behavior.
Adds clientcert auth tests for the newly introduced
`MakeTlsConnector::from_tls_config(TlsConfig)` convenience constructor.
@uce
Copy link
Author

uce commented May 20, 2021

Closing in favor of #2.

@uce uce closed this May 20, 2021
@uce uce deleted the 6716-ssl_modes branch May 20, 2021 09:47
@uce uce restored the 6716-ssl_modes branch May 20, 2021 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant