command: Fixing setup of client certificates

This commit is contained in:
Armon Dadgar
2015-08-17 12:16:32 -07:00
parent 6d05df1596
commit e659d93163

View File

@@ -96,7 +96,7 @@ func (m *Meta) Client() (*api.Client, error) {
}
}
// If we need custom TLS configuration, then set it
if m.flagCACert != "" || m.flagCAPath != "" || m.flagInsecure {
if m.flagCACert != "" || m.flagCAPath != "" || m.flagClientCert != "" || m.flagClientKey != "" || m.flagInsecure {
var certPool *x509.CertPool
var err error
if m.flagCACert != "" {