Skip to content

How to add SSH support to an existing step-ca? #400

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

You must be logged in to vote

is there a way to enable this after having the CA set up, or do I need to blow it all away and start from scratch?

Hi, @B3DTech yes, there's a way, but you need to manually edit the ca.json. To add a block like this one

"ssh": {
    "hostKey": "/home/name/.step/secrets/ssh_host_ca_key",
    "userKey": "/home/name/.step/secrets/ssh_user_ca_key",
}

Those are the private keys used to sign host and user certificates. You can generate them with:

step crypto keypair ssh_host_ca.pub ssh_host_ca_key
step crypto keypair ssh_user_ca.pub ssh_user_ca_key

⚠️ Make sure to use the same password that you used before, that way, if not step-ca will fail if you're using it with --password-file (or with the

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
6 replies
@mmalone
Comment options

@tashian
Comment options

tashian Jun 9, 2021
Collaborator

@tashian
Comment options

tashian Jun 9, 2021
Collaborator

@0x6c66
Comment options

@maraino
Comment options

Answer selected by tashian
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@mmalone
Comment options

@danb35
Comment options

@tashian
Comment options

tashian Jun 29, 2021
Collaborator

@danb35
Comment options

@tashian
Comment options

tashian Jun 29, 2021
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #400 on October 20, 2020 17:22.