MCPcopy
hub / github.com/perkeep/perkeep / OptionTrustedCert

Function OptionTrustedCert

pkg/client/client.go:385–388  ·  view source on GitHub ↗

OptionTrustedCert returns a ClientOption that makes the client trust the provide self-signed cert signature. The value should be the 20 byte hex prefix of the SHA-256 of the cert, as printed by the perkeepd server on start-up. If cert is empty, the option has no effect.

(cert string)

Source from the content-addressed store, hash-verified

383//
384// If cert is empty, the option has no effect.
385func OptionTrustedCert(cert string) ClientOption {
386 // TODO: remove this whole function now that we have LetsEncrypt?
387 return optionTrustedCert(cert)
388}
389
390type optionTrustedCert string
391

Callers 2

newFromConfigFunction · 0.92
mainFunction · 0.92

Calls 1

optionTrustedCertTypeAlias · 0.85

Tested by

no test coverage detected