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

Provide SSL keys in memory? #849

Open
malexdev opened this issue Apr 19, 2019 · 3 comments
Open

Provide SSL keys in memory? #849

malexdev opened this issue Apr 19, 2019 · 3 comments

Comments

@malexdev
Copy link

I see the code for the SSL connection information currently requires that I store my SSL files on disk. However, I'd like to store them in the binary and provide them at runtime.

Would you be open to adding connection string options that would allow providing the SSL files (cert, key, CA) as base64 encoded strings in the connection string itself?

If so I believe I can code it, just want to see if that's a direction pq is okay with pursuing.

@cbandy
Copy link
Contributor

cbandy commented Apr 24, 2019

This sounds like it should be a feature of the Connector rather than in the connection string.

@korpa
Copy link

korpa commented Apr 25, 2019

The MySQL driver already has a solution for this and I would really be happy to have something similar for pq:

https://godoc.org/github.com/go-sql-driver/mysql#RegisterTLSConfig

@korpa
Copy link

korpa commented Apr 25, 2019

See #789 as well

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

No branches or pull requests

3 participants