-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH-equivalent to "Create a new Certificate Authority or an intermediate CA from your existing PKI" #97
Comments
Hi @brotherdust, we should add some kind of tutorial to enable SSH certificates on an already initialized SSH. I can give you a short version here. But first, let me clarify your point 1; SSH doesn't have CSR's and does not have intermediate certificates, SSH just needs a private key to be able to sign certificates. Keeping that into account, you will need to generate a couple of keys, one to sign host certificates and another one to sign ssh certificates: step crypto keypair host.pub host.key
step crypto keypair user.pub user.key Due to how step-ca currently starts with encrypted keys, you will need to use the same password that you used to encrypt the X.509 certificate key. After that you will only need to add the following block in your ca.json:
This will get you to a basic configuration, but you will be using the default configuration templates. If you want to change them the easiest way is to initialize a step-ca in a different STEPPATH and copy the STEPPATH=/tmp/temp-ca step ca init --ssh |
Thank you kindly! Do you want to keep this open as an issue with the documentation? |
Let's leave it open and it will appear in our next triage meeting. |
Thanks for this! I'm trying it now. |
See also: smallstep/certificates#400 |
In the not so long term, we agree that the cli needs a command to make this process seamless. In the mean time, we've updated our docs in a few places so that the manual method is easier to find. I'm leaving the ticket open as something we'd like to return to, but not a short term priority. |
Basically what the title says. There doesn't seem to be a way to generate an SSH-specific CSR for my root to sign. Would be nice if you could make the SSH equivalent to the tutorial here. Having instructions on the following:
step ca init --ssh
function.As it is, it would seem the only way to get an SSHCA up and running is to run
step ca init --ssh
, implying that it cannot be done afterstep ca init
.This is probably two different use-cases, but the story is similar.
Please advise. Thanks!
The text was updated successfully, but these errors were encountered: