Skip to content

Change crv & alg on ca.json file #416

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

You must be logged in to vote

@Rapt88 that's what we call a "JWK provisioner" in our documentation. JWK stands for "JSON Web Key" -- it's just a JSON data structure that includes a public or private key along with some metadata. What you're looking at (the "P-256" and "ES256" bits) are key metadata saying that the associated key (represented as the "x" and "y" attributes) is a "P-256" key and should be used with the "ES256" signing algorithm. To use P-384/ES384 you can't just change these parameters: you have to generate a new key.

You can use step crypto jwk create to do so, then use step ca provisioner add to add your new key to ca.json. Once that's done, you can remove the old key (either by manually editing ca.json

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@maraino
Comment options

@Rapt88
Comment options

@tashian
Comment options

@maraino
Comment options

@maraino
Comment options

Answer selected by tashian
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants