MCPcopy
hub / github.com/perkeep/perkeep / DefaultTLSKey

Function DefaultTLSKey

internal/osutil/paths.go:310–316  ·  view source on GitHub ↗

DefaultTLSKey returns the path to the default TLS key file that is used (creating if necessary) when TLS is specified without the key file.

()

Source from the content-addressed store, hash-verified

308// file that is used (creating if necessary) when TLS is specified
309// without the key file.
310func DefaultTLSKey() string {
311 dir, err := PerkeepConfigDir()
312 if err != nil {
313 log.Fatalf("Could not compute DefaultTLSKey: %v", err)
314 }
315 return filepath.Join(dir, "tls.key")
316}
317
318// RegisterLetsEncryptCacheFunc registers a func f to return the path to the
319// default Let's Encrypt cache.

Callers 1

setupTLSFunction · 0.92

Calls 2

PerkeepConfigDirFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected