-
Notifications
You must be signed in to change notification settings - Fork 441
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
[Bug]: step ca certificate <subject> cert.crt cert.key --password-file=<private-key-passphrase-file> fails with the error "failed to decrypt JWE: invalid password" #1949
Comments
Hey @tregubovav-dev, I know in some places we reuse the value from the |
Using both, '--password-file' and '--provisioner-password-file' generates certificate pair without error. However, generated certificate key is not encrypted. Please see a matrix of option combination results (using
|
Hey @tregubovav-dev 👋. Thanks for opening the issue! First off, our team discussed the bug report and we agree that the current behavior is confusing. There's a few things going on here, so I'll try to do a quick summary.
So, in terms of next steps.. Since this isn't technically a bug (closer to a feature request) and there are workarounds to achieve the same result, it's not something we have the capacity to prioritize in the short term. That said, we agree that this is confusing and we would like to change the usage and functionality of Cheers 🍻 |
I appreciate this clarification. In reality this is minor issue and workaround exists. I agree with your decision! |
Steps to Reproduce
I'm unable to issue passphrase protected certificate with the key using
step ca certificate
command. If I use command like below:step ca certificate test-cert test-cert.crt test-cert.key --password-file=test-pass
wheretest-pass
contains any string as passphrase to encrypt certificate key, the command fails with the error:failed to decrypt JWE: invalid password
Steps to reproduce:
echo "test123" > test-pass
step ca certificate test-cert test-cert.crt test-cert.key --password-file=test-pass
Your Environment
step-cli
Version:Smallstep CLI/0.27.2 (linux/amd64)
step-ca
Version: step-ca-hsm:latest docker image ({ "version": "0.27.2"})Expected Behavior
Actual Behavior
Certificate issuance failed with the error:
failed to decrypt JWE: invalid password
.This error makes me evidence that the
--password-file
option is the synonym of--provisioner-password-file
option.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).
The text was updated successfully, but these errors were encountered: