Handle error returned by acme.NewClient

This commit is contained in:
Ken-Håvard Lieng 2017-05-20 23:06:37 +02:00
parent 5487ecdb57
commit a4e9eeefed
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ func Run(dir, domain, email, port string) (*state, error) {
}
client, err := acme.NewClient(URL, &user, acme.RSA2048)
if err != nil {
return nil, err
}
client.ExcludeChallenges([]acme.Challenge{acme.TLSSNI01})
client.SetHTTPAddress(port)