[Bug]: Step-cli: error generating OIDC token: exec "step oauth" failed
Maintainers usually reply within 1 day
@hslatman is already working on this.
Since Mar 3, 2026.
Assessment
This issue has not been assessed yet.
Description
Steps to Reproduce
- Download step-cli for Windows (amd64).
- Extract the folder
- run
step ssh certificate key-id key-file --ca-url https://step-ca-url --root your_root_cert.pem --provisioner=name_of_provisioner
Your Environment
- OS - Windows 11 23H2
stepCLI Version - Smallstep CLI/0.28.7 (windows/amd64)
Expected Behavior
I would expect it to open the Identity provider in a new browser window.
Running step oauth --provider https://your-idp --listen :10000 --client-id id --client-secret secret works fine.
I also notice that the step-cli under Windows seems to have some output issues.
When I just run step it says:
step
←[0;1;99mNAME←[0m
←[0;1;99mstep←[0m -- plumbing for distributed systems
←[0;1;99mUSAGE←[0m
←[0;1;99mstep←[0m ←[0;4;39mcommand←[0m ←[0;4;39m[arguments]←[0m
←[0;1;99mOPTIONS←[0m
←[0;1;99m--help←[0m, ←[0;1;99m-h←[0m
show help
←[0;1;99m--config←[0m=←[0;4;39mvalue←[0m
path to the config file to use for CLI flags
←[0;1;99m--version←[0m, ←[0;1;99m-v←[0m
print the version
so I guess the 2 topics could be combined. step ssh certificate would need to contact the Step server and gets the OIDC info back. Maybe those funny characters are also included when it tries to build the oauth string. I can see the step-cli contacting the step-server and queries the list of provisioners. On the IdP I can't see any activity.
Actual Behavior
Output is: error generating OIDC token: exec "step oauth" failed
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
- Dominant language
- Go
- Stars
- 4.3k
- Forks
- 320
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from smallstep/cli
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 4/5 3-5 days Newbie friendliness 32/100
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 3/5 1-2 days Newbie friendliness 57/100
smallstep/cli#1713 · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
smallstep/cli#1710 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
bug(terraform): a `kubernetes_manifest` the scan can't fully read is dropped and nothing says soOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OneBusAway/watchdog#455 ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rootsiemen/loophole#97 ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 84/100
smallstep/certificates#2863 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
SocialGouv/iterion#3889 ·
Maintainers usually reply within 1 day