certificates
certificates copied to clipboard
[Bug]: step ca init ignores --password-file when using an existing root cert
Steps to Reproduce
Generate a root certificate
cd ~
echo "test" > passwd
step ca init --deployment-type standalone --password-file passwd --dns ca.home --name Homelab --address :443 --provisioner JWK
Now, move it somewhere else and try to generate a new one using that existing root
cd ~
mv .step step
step ca init --deployment-type standalone --password-file passwd --dns ca.home --name Homelab --address :443 --provisioner JWK --root step/certs/root_ca.crt --key step/secrets/root_ca_key
Your Environment
- OS - Ubuntu 22.04.4
step-caVersion - 0.26.1
Expected Behavior
I expected it to use my password file and automatically decrypt the key like it does when generating a new cert.
Actual Behavior
It doesn't appear to use my password file and automatically decrypt the key like it does when generating a new cert. This breaks my automation when using an existing cert because now it's looking for a user prompt.
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).