-
I am trying to write some ansible to define the deployment of step-ca as a local certificate authority for my homelab. The best practices document suggests
There seem to be no command-line flags to specify files containing decryption/encryption passwords, so I've been trying to use ansible's I had no problem writing an ansible task for the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @jrsmith3, this is one of a few small configuration management issues we have right now around automated bootstrapping. I'd suggest creating an issue for One alternative worth mentioning: If you know you'll never need another intermediate, you could throw away the root CA private key. The CA doesn't need it. |
Beta Was this translation helpful? Give feedback.
-
I agree with @tashian, and we should add a cat $(step path)/secrets/intermediate_ca_key | step crypto key format --password-file /tmp/old-password.txt | step crypto key format --password-file /tmp/new-password.txt What is happening here is that the first |
Beta Was this translation helpful? Give feedback.
I agree with @tashian, and we should add a
--password-file
tostep crypto change-pass
. But right now, there's a tricky way to do it without prompts.What is happening here is that the first
format
is converting the PEM to DER, and this format does not support password, then we're doing the opposite, and converting DER to PEM.