Commit a251831f authored by Matthew Holt's avatar Matthew Holt

Fix bug renewing certs affecting Caddyfiles using wildcard addresses

A Caddyfile using *.example.com as its site address would be subject to
this bug at renewal time, as it would use the literal "*.example.com"
value instead of the name being passed in to obtain a certificate.
This change fixes the LoadSite call so that it looks in the proper
directory for the certificate resources.
parent 1ea96def
......@@ -206,7 +206,7 @@ func (c *Config) renewCertName(name string, allowPrompts bool) error {
}()
// Prepare for renewal (load PEM cert, key, and meta)
siteData, err := storage.LoadSite(c.Hostname)
siteData, err := storage.LoadSite(name)
if err != nil {
return err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment