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)
|
client, err := acme.NewClient(URL, &user, acme.RSA2048)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
client.ExcludeChallenges([]acme.Challenge{acme.TLSSNI01})
|
client.ExcludeChallenges([]acme.Challenge{acme.TLSSNI01})
|
||||||
client.SetHTTPAddress(port)
|
client.SetHTTPAddress(port)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user