MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / SkipTLSValidation

Function SkipTLSValidation

credhub/options.go:72–77  ·  view source on GitHub ↗

SkipTLSValidation will skip root certificate verification for HTTPS. Not recommended!

(skipTLSvalidation bool)

Source from the content-addressed store, hash-verified

70
71// SkipTLSValidation will skip root certificate verification for HTTPS. Not recommended!
72func SkipTLSValidation(skipTLSvalidation bool) Option {
73 return func(c *CredHub) error {
74 c.insecureSkipVerify = skipTLSvalidation
75 return nil
76 }
77}
78
79// ClientCert will use a certificate for authentication
80func ClientCert(certificate, key string) Option {

Callers 9

mainFunction · 0.92
ExampleCredHubFunction · 0.92
ExampleNewFunction · 0.92
newCredhubClientFunction · 0.92
GetApiInfoFunction · 0.92
ExecuteMethod · 0.92
RevokeTokenIfNecessaryFunction · 0.92
client_test.goFile · 0.85

Calls

no outgoing calls

Tested by 2

ExampleCredHubFunction · 0.74
ExampleNewFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…