Skip to content

lokey example doesn't work well #3808

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

Closed
jpeach opened this issue Mar 15, 2022 · 1 comment · Fixed by #4077
Closed

lokey example doesn't work well #3808

jpeach opened this issue Mar 15, 2022 · 1 comment · Fixed by #4077
Assignees
Labels
content:edit Request for content edits documentation Documentation edits

Comments

@jpeach
Copy link

jpeach commented Mar 15, 2022

Existing documentation URL(s)

https://developers.cloudflare.com/cloudflare-one/identity/users/validating-json/#manual-verification

Section that requires update

Telling people to use lokey seems really fraught. On macOS, I had to do:

$ brew install python
$ pip3.9 install lokey
$ pip3.9 install six==1.10.0

And it still doesn't work:

$ curl -s https://$DOMAIN/cdn-cgi/access/certs | jq '.keys[0]' | lokey to pem -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA01SvMv4TgFIECQgzHaRL DGVaKhRQHjgdiSOpbqhHQMdcNtBIM0HAQbrs7YS6sQCCdZC5wCvlq3xgqdU5J6k YI5OCSsIWXKkobAl6PbXHdN0bJximeiHGa3O0hMREP6RKBoI6ayNmZ3WlVGWY 6ie47KGqN69l7fPKyZvszb4GdpxE0r8gllZZwIuPjzlghXRlrkaP48ucQwo+tq PSSdDdW57TCFmy+G547W5iWZWJIeNkfVu9t6FktvCwSZ1ekum3X7IQcd0O0DWSR Aj9tzNDPkzOeSFxmQkKpWs8Qw7ZBIfLOsO3DCH6VPNhS2cqhw1AAMunh8alDKQU aQIDAQAB -----END PUBLIC KEY-----
Traceback (most recent call last):
  File "/opt/homebrew/bin/lokey", line 5, in <module>
    from lokey import cli
  File "/opt/homebrew/lib/python3.9/site-packages/lokey/__init__.py", line 49
    print ctx.obj.key
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ctx.obj.key)?

What needs to change?

Use some tool that can reliably be installed and work.

@jpeach jpeach added content:edit Request for content edits documentation Documentation edits labels Mar 15, 2022
@jpeach
Copy link
Author

jpeach commented Mar 15, 2022

jpf/lokey#7
jpf/lokey#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content:edit Request for content edits documentation Documentation edits
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants