Skip to content

Commit

Permalink
Merge pull request gruntwork-io#82 from gruntwork-io/yori-fix-tlsonfig
Browse files Browse the repository at this point in the history
Set ServerName for tls config
  • Loading branch information
yorinasub17 authored Mar 3, 2020
2 parents 956f129 + f4e4d76 commit 5e02b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eks/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func getThumbprint(jwksURL string) (string, error) {
hostname = net.JoinHostPort(hostname, "443")
}

tlsConfig := tls.Config{}
tlsConfig := tls.Config{ServerName: parsedURL.Host}
conn, err := tls.Dial("tcp", hostname, &tlsConfig)
if err != nil {
return "", errors.WithStackTrace(err)
Expand Down

0 comments on commit 5e02b4e

Please sign in to comment.