Skip to content

Can the root CA cert have a duration longer than 10 years? #384

Answered by mmalone
Rapt88 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it is possible! But you'll need to use a slightly more elaborate workflow to initialize the CA infrastructure. Specifically, you'll need to generate a root CA key & certificate then pass those in to step ca init. Technically, you could use any tool to generate your root, but here's how you'd do this with step:

$ step certificate create "My Root CA" root_ca.crt root_ca_key --profile root-ca --not-after 175200h
$ step ca init --root root_ca.crt --key root_ca_key

When you run this command it will copy your root_ca_key into ~/.step/secrets/root_ca_key. The CA doesn't actually need this file though. You can delete it if you'd like.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rapt88
Comment options

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