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

Enable SSL configuration for connections #50

Closed
FranzBusch opened this Issue Apr 15, 2018 · 2 comments

Comments

2 participants
@FranzBusch
Copy link

FranzBusch commented Apr 15, 2018

Heroku enforces their PostgreSQL database connections to use SSL communication. Currently, as far as I can see there is no way of using SSL connections with the current implementation.

@FranzBusch

This comment has been minimized.

Copy link
Author

FranzBusch commented Apr 15, 2018

I tried working on this and implemented the SSL Request communication to the server as described here: https://www.postgresql.org/docs/9.3/static/protocol-flow.html#AEN99924
The response I get is the expected "S" and I want to go forward and initiate the SSL handshake. I do this by adding the OpenSSLClientHandler to the pipeline. Sadly this results in a "certificate verify failed" error from OpenSSL. I don't know if this error is coming from a bad use of how I add the pipeline for example or something else

@FranzBusch

This comment has been minimized.

Copy link
Author

FranzBusch commented Apr 15, 2018

Just opened a PR for this #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment