DefaultTLSCert returns the path to the default TLS certificate file that is used (creating if necessary) when TLS is specified without the cert file.
()
| 297 | // file that is used (creating if necessary) when TLS is specified |
| 298 | // without the cert file. |
| 299 | func DefaultTLSCert() string { |
| 300 | dir, err := PerkeepConfigDir() |
| 301 | if err != nil { |
| 302 | log.Fatalf("Could not compute DefaultTLSCert: %v", err) |
| 303 | } |
| 304 | return filepath.Join(dir, "tls.crt") |
| 305 | } |
| 306 | |
| 307 | // DefaultTLSKey returns the path to the default TLS key |
| 308 | // file that is used (creating if necessary) when TLS is specified |
no test coverage detected