Use canonical imports (#822)

* fix: challenge are not required for revoke.
This commit is contained in:
Ludovic Fernandez 2019-03-11 16:54:35 +01:00 committed by GitHub
parent 62fea05e21
commit 219222fdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
197 changed files with 229 additions and 231 deletions

View file

@ -1,4 +1,4 @@
package cmd
package cmd // import "github.com/xenolf/lego/cmd"
import (
"crypto/x509"
@ -53,8 +53,6 @@ func newClient(ctx *cli.Context, acc registration.User, keyType certcrypto.KeyTy
log.Fatalf("Could not create client: %v", err)
}
setupChallenges(ctx, client)
if client.GetExternalAccountRequired() && !ctx.GlobalIsSet("eab") {
log.Fatal("Server requires External Account Binding. Use --eab with --kid and --hmac.")
}