-
So in the documentation - I have come across nothing about running 'step ca init -ssh' to enable ssh certs on hosts. I get all the way through configuring step-ca as an intermediate signed off our internal root, everything seems OK. Go to add a host with 'step ssh certificate --host hostname.domain.com ssh_host_ecdsa_key' and it fails saying the method is not implement by the CA. CA logs show error="authority.Authorize; ssh certificate flows are not enabled" Seems like I needed to do 'step ca init -ssh' to enable SSH certs? If that's the case, 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? If I run 'step ca init -ssh', are the ssh certs generated off the self-created root and intermediate CA certs? Because after doing the init, I replace the root and intermediate with those created from our existing root. Will this invalidate the SSH certs created during the init? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Hi, @B3DTech yes, there's a way, but you need to manually edit the
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
You can also start from scratch and replace ~/.step, or you can even start from scratch but keeping the same root with By default when you run STEPPATH=/tmp/mytempca step ca init --ssh ...
No, new keys are created for SSH certificates. So you can always replace them (but use the same password).
No. |
Beta Was this translation helpful? Give feedback.
-
Thank you - seems to be working. Having a few OIDC issues, but it successfully issued the SSH host cert. |
Beta Was this translation helpful? Give feedback.
-
I'm in a similar situation, but I think I'm going to need a little more guidance. I set up the CA following https://smallstep.com/blog/build-a-tiny-ca-with-raspberry-pi-yubikey/, and it's been working quite nicely. I'm now wanting to set up the CA to issue SSH certificates. Thus far, I've created the keypairs (the The problem comes with adding the
(NB: the response on 15 Oct has a comma following the
I'd appreciate a little further guidance here. |
Beta Was this translation helpful? Give feedback.
Hi, @B3DTech yes, there's a way, but you need to manually edit the
ca.json
. To add a block like this oneThose are the private keys used to sign host and user certificates. You can generate them with:
step-ca
will fail if you're using it with--password-file
(or with the