Handle error returned by acme.NewClient
This commit is contained in:
parent
5487ecdb57
commit
a4e9eeefed
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user