Skip to content

Commit

Permalink
TLS Known Hosts Fix
Browse files Browse the repository at this point in the history
This patch updates the TLS parser to fix the issue where a user-scoped
known_hosts file wasn't enabling TLS insecure in conjunction with peer
validation.
  • Loading branch information
akutz committed May 1, 2017
1 parent 44a5d1c commit 95ede84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/utils/utils_tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func ParseTLSConfig(
newTLS("usrKnownHosts", pathConfig.UserDefaultTLSKnownHosts)
f("usrKnownHosts", pathConfig.UserDefaultTLSKnownHosts)
tlsConfig.UsrKnownHosts = pathConfig.UserDefaultTLSKnownHosts
tlsConfig.InsecureSkipVerify = true
tlsConfig.VerifyPeers = true
}

Expand Down

0 comments on commit 95ede84

Please sign in to comment.