Skip to content

Automated way to change intermediate CA private key #467

Closed Answered by maraino
jrsmith3 asked this question in Q&A
Discussion options

You must be logged in to vote

I agree with @tashian, and we should add a --password-file to step crypto change-pass. But right now, there's a tricky way to do it without prompts.

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 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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jrsmith3
Comment options

@jrsmith3
Comment options

@maraino
Comment options

Answer selected by jrsmith3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants