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
No known key found for this signature in database
GPG key ID: 0D97CC73664F4D03
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
}