Clean up some significant portions of the TLS management code

This commit is contained in:
Matthew Holt
2016-09-14 22:30:49 -06:00
parent 0e7635c54b
commit bedad34b25
6 changed files with 112 additions and 166 deletions

View File

@@ -23,7 +23,7 @@ func activateHTTPS(cctx caddy.Context) error {
// place certificates and keys on disk
for _, c := range ctx.siteConfigs {
err := c.TLS.ObtainCert(operatorPresent)
err := c.TLS.ObtainCert(c.TLS.Hostname, operatorPresent)
if err != nil {
return err
}