forked from TrueCloudLab/lego
Update CLI for new NewClient signature
This commit is contained in:
parent
56d50cebd8
commit
ef2501bb4c
1 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,13 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
|
|||
|
||||
//TODO: move to account struct? Currently MUST pass email.
|
||||
acc := NewAccount(c.GlobalString("email"), conf)
|
||||
return conf, acc, acme.NewClient(c.GlobalString("server"), acc, conf.RsaBits(), conf.OptPort())
|
||||
|
||||
client, err := acme.NewClient(c.GlobalString("server"), acc, conf.RsaBits(), conf.OptPort())
|
||||
if err != nil {
|
||||
logger().Fatal("Could not create client:", err)
|
||||
}
|
||||
|
||||
return conf, acc, client
|
||||
}
|
||||
|
||||
func saveCertRes(certRes acme.CertificateResource, conf *Configuration) {
|
||||
|
|
Loading…
Reference in a new issue