Skip to content

Commit

Permalink
Merge pull request #1610 from spjmurray/system_ca_pool
Browse files Browse the repository at this point in the history
✨ Allow Use of Public CAs
  • Loading branch information
k8s-ci-robot authored Jul 19, 2023
2 parents 2856f63 + 0249663 commit 88a3a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scope/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ func NewProviderClient(cloud clientconfig.Cloud, caCert []byte, logger logr.Logg
}

config := &tls.Config{
RootCAs: x509.NewCertPool(),
MinVersion: tls.VersionTLS12,
}
if cloud.Verify != nil {
config.InsecureSkipVerify = !*cloud.Verify
}
if caCert != nil {
config.RootCAs = x509.NewCertPool()
config.RootCAs.AppendCertsFromPEM(caCert)
}

Expand Down

0 comments on commit 88a3a1d

Please sign in to comment.