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 where test-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:
- create password file using command:
echo "test123" > test-pass
- create certificate using command
step ca certificate test-cert test-cert.crt test-cert.key --password-file=test-pass
Your Environment
- OS - Client: Ubuntu 24.04 (WSL2),
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
- Certificate and key should be created
- Key should be encrypted by passphrase
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).