Skip to content

Invalid client.revoke() call #120

@jeaye

Description

@jeaye

It looks like we're only passing the cert to client.revoke, but it also expects a reason. The current simp_le version:

https://github.com/kuba/simp_le/blob/master/simp_le.py#L1331

The official docs:

http://letsencrypt.readthedocs.io/projects/acme/en/latest/api/client.html#acme.client.Client.revoke

This is manifesting, for me, when trying to revoke a cert:

$ simp_le --revoke -f cert.pem 
2017-04-22 18:52:28,651:INFO:simp_le:1211: Generating new account key
Traceback (most recent call last):
  File "/nix/store/vdp6dn3shkwd2yihdbzxs8zvv1sa99gd-simp_le-client-0.1.1/lib/python2.7/site-packages/simp_le.py", line 1401, in main
    return main_with_exceptions(cli_args)
  File "/nix/store/vdp6dn3shkwd2yihdbzxs8zvv1sa99gd-simp_le-client-0.1.1/lib/python2.7/site-packages/simp_le.py", line 1374, in main_with_exceptions
    return revoke(args)
  File "/nix/store/vdp6dn3shkwd2yihdbzxs8zvv1sa99gd-simp_le-client-0.1.1/lib/python2.7/site-packages/simp_le.py", line 1331, in revoke
    client.revoke(existing_data.cert)
TypeError: revoke() takes exactly 3 arguments (2 given)

Unhandled error has happened, traceback is above

Debugging tips: -v improves output verbosity. Help is available under --help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions