Skip to content

Commit

Permalink
Accidentally reverted mariano's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dopey committed Aug 9, 2022
1 parent 5860b34 commit 884b541
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions command/ca/revoke.go
Expand Up @@ -263,12 +263,11 @@ func revokeCertificateAction(ctx *cli.Context) error {
return err
}

_serial := new(big.Int)
_serial, ok := _serial.SetString(serial, 0)
sn, ok := new(big.Int).SetString(serial, 0)
if !ok {
return fmt.Errorf("'%s' is not a valid serial number - use a base 10 representation or add a prefix indicating the base", serial)
}
serial = _serial.String()
serial = sn.String()
if token == "" {
// No token and no cert/key pair - so generate a token.
token, err = flow.GenerateToken(ctx, &serial)
Expand Down

0 comments on commit 884b541

Please sign in to comment.