Add ssl cert/key options

This commit is contained in:
Dan Sosedoff
2020-02-05 22:09:13 -06:00
parent 9c7f566d4d
commit ce4aea8da1
2 changed files with 10 additions and 2 deletions

View File

@@ -115,6 +115,12 @@ func BuildStringFromOptions(opts command.Options) (string, error) {
query.Add("sslmode", "disable")
}
}
if opts.SslCert != "" {
query.Add("sslcert", opts.SslCert)
}
if opts.SslKey != "" {
query.Add("sslkey", opts.SslKey)
}
if opts.SslRootCert != "" {
query.Add("sslrootcert", opts.SslRootCert)
}