Skip to content

Commit

Permalink
Merge pull request #77 from twmb/fix_tls
Browse files Browse the repository at this point in the history
Fix client verification and wording
  • Loading branch information
mreiferson committed Aug 22, 2014
2 parents 7a03438 + e0b1455 commit 066486d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ type Config struct {
//
// tls_root_ca_file - String path to file containing root CA
// tls_insecure_skip_verify - Bool indicates whether this client should verify server certificates
// tls_cert - String path to file containing private key for certificate
// tls_key - String path to file containing public key for certificate
// tls_cert - String path to file containing public key for certificate
// tls_key - String path to file containing private key for certificate
//
TlsV1 bool `opt:"tls_v1"`
TlsConfig *tls.Config `opt:"tls_config"`
Expand Down Expand Up @@ -343,7 +343,7 @@ func (t *tlsConfig) Set(c *Config, option string, value interface{}) error {
if !tlsCertPool.AppendCertsFromPEM(ca_cert_file) {
return fmt.Errorf("ERROR: failed to append certificates from Certificate Authority file")
}
c.TlsConfig.ClientCAs = tlsCertPool
c.TlsConfig.RootCAs = tlsCertPool
return nil
case "tls_insecure_skip_verify":
fieldVal := val.FieldByName("InsecureSkipVerify")
Expand Down

0 comments on commit 066486d

Please sign in to comment.