letsencrypt: Allow (but warn about) empty emails

This commit is contained in:
Matthew Holt
2015-10-30 23:44:00 -06:00
parent e99b3af0a5
commit 3843cea959
4 changed files with 37 additions and 9 deletions

View File

@ -156,10 +156,6 @@ func groupConfigsByEmail(configs []server.Config) (map[string][]*server.Config,
continue
}
leEmail := getEmail(configs[i])
if leEmail == "" {
// TODO: This may not be an error; just a poor choice by the user
return nil, errors.New("must have email address to serve HTTPS without existing certificate and key")
}
initMap[leEmail] = append(initMap[leEmail], &configs[i])
}
return initMap, nil