You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to restrict communication protocols to TLS 1.1 and TLS 1.2. I have tried to set poolOptions.ssl.secureOptions = SSL_OP_NO_TLSv1 | SSL_OP_NO_SSLv3 | SSL_OP_NO_SSLv2 and then call new pg.Pool(poolOptions);.
However, ssl.secureOption is not supported by pg - in connection.js, during streamcreation the secureOptions property is not copied to tls.connect() argument (ConnectionOptions).
Adding secureOptions: self.ssl.secureOptions to the ConnectionOptions instance seems to fix the problem.
Would you accept a fix that would copy over the ssl.secureOptions to tls.connect() argument?
Something like
We need to restrict communication protocols to TLS 1.1 and TLS 1.2. I have tried to set
poolOptions.ssl.secureOptions = SSL_OP_NO_TLSv1 | SSL_OP_NO_SSLv3 | SSL_OP_NO_SSLv2
and then callnew pg.Pool(poolOptions);
.However,
ssl.secureOption
is not supported by pg - in connection.js, during streamcreation thesecureOptions
property is not copied totls.connect()
argument (ConnectionOptions
).Adding
secureOptions: self.ssl.secureOptions
to theConnectionOptions
instance seems to fix the problem.Would you accept a fix that would copy over the
ssl.secureOptions
totls.connect()
argument?Something like
The text was updated successfully, but these errors were encountered: