-
-
Notifications
You must be signed in to change notification settings - Fork 956
sslsni default support in 1.10.7 breaks verify-ca option #1106
Copy link
Copy link
Closed
Labels
Description
After updating from 1.10.6 to 1.10.7 I found that when using sslmode=verify-ca mode:
client.ConnectionState().ServerNamein this part of code has value ofhostparameter from db connection string- few lines below it is used to verify leaf server cert - https://github.com/lib/pq/blob/master/ssl.go#L202 breaking
verify-caoption, throwingx509: “*.<host>” certificate name does not match input
In version 1.10.6 sslVerifyCertificateAuthority function was using empty string in its place, ignoring verification of leaf certificate.
I would like to be able to use sslsni option and on same time use verify-ca option.
Reactions are currently unavailable