Replies: 1 comment
-
Make sure that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when using the tls certificate options in the connection string, it's assumed the certificates are on disk. in my case i have them in memory (i basically have a
*tls.Config
already).what is the best way to use such certificates?
i found a way that works:
but i also saw this warning:
pgx/pgconn/config.go
Lines 204 to 209 in 5c63f64
"Ensure there are no stale fallbacks when manually setting TLSConfig."
is there maybe a more robust way to do this?
if not, how should i "ensure there are no stale fallbacks"? before replacing
conf.TLSConfig
, should i check if it'snil
or not, and return an error if it's notnil
?Beta Was this translation helpful? Give feedback.
All reactions