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

Function ClientCert

credhub/options.go:80–90  ·  view source on GitHub ↗

ClientCert will use a certificate for authentication

(certificate, key string)

Source from the content-addressed store, hash-verified

78
79// ClientCert will use a certificate for authentication
80func ClientCert(certificate, key string) Option {
81 return func(c *CredHub) error {
82 cert, err := tls.LoadX509KeyPair(certificate, key)
83 if err != nil {
84 return err
85 }
86 c.clientCertificate = &cert
87
88 return nil
89 }
90}
91
92// SetHttpTimeout will set the timeout for the CredHub client
93func SetHttpTimeout(timeout *time.Duration) Option {

Callers 1

client_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…