mirror of https://github.com/jackc/pgx.git
Only initialize the CA if the path is not an empty string.
parent
52bada3401
commit
f0dc593c2f
2
conn.go
2
conn.go
|
@ -929,7 +929,7 @@ func configTLS(args configTLSArgs, cc *ConnConfig) error {
|
||||||
return errors.New("sslmode is invalid")
|
return errors.New("sslmode is invalid")
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
if args.sslRootCert != "" {
|
||||||
caCertPool := x509.NewCertPool()
|
caCertPool := x509.NewCertPool()
|
||||||
|
|
||||||
caPath := args.sslRootCert
|
caPath := args.sslRootCert
|
||||||
|
|
Loading…
Reference in New Issue