Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid client.revoke() call #120

Open
jeaye opened this issue Apr 22, 2017 · 5 comments
Open

Invalid client.revoke() call #120

jeaye opened this issue Apr 22, 2017 · 5 comments

Comments

@jeaye
Copy link

jeaye commented Apr 22, 2017

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.
@zenhack
Copy link
Contributor

zenhack commented Apr 22, 2017

@jeaye, this is fixed on my fork:

https://github.com/zenhack/simp_le

This repository seems to be abandoned; @kuba has been inactive on Github since June of last year. The reason parameter was introduced in python-acme 0.11, which was released some time after this repo was abandoned.

@jeaye
Copy link
Author

jeaye commented Apr 22, 2017 via email

@zenhack
Copy link
Contributor

zenhack commented Apr 22, 2017

Worth noting, 0.1.1 specifies an upper bound on the version of python-acme, specifically because of compatibility issues like this; If you're hitting this issue it's because you're using incompatible versions.

@jeaye
Copy link
Author

jeaye commented Apr 22, 2017 via email

@zenhack
Copy link
Contributor

zenhack commented Apr 22, 2017

I really wish distro packagers would report (perceived) bugs like this upstream more reliably... Grr indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants