We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent d030cac commit 39d6520Copy full SHA for 39d6520
cmd/web_acme.go
@@ -54,8 +54,11 @@ func runACME(listenAddr string, m http.Handler) error {
54
altTLSALPNPort = p
55
}
56
57
+ certmagic.Default.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory}
58
magic := certmagic.NewDefault()
- 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