We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d030cac commit 8c33cacCopy full SHA for 8c33cac
cmd/web_acme.go
@@ -54,8 +54,11 @@ func runACME(listenAddr string, m http.Handler) error {
54
altTLSALPNPort = p
55
}
56
57
- magic := certmagic.NewDefault()
+ magic := &certmagic.Default
58
magic.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory}
59
+ if magic.Storage != certmagic.Default.Storage {
60
+ return fmt.Errorf("failed to set certmagic storage")
61
+ }
62
// Try to use private CA root if provided, otherwise defaults to system's trust
63
var certPool *x509.CertPool
64
if setting.AcmeCARoot != "" {
0 commit comments