Open Carlgo11 opened 2 years ago
Thanks for the super detailed report here. As I followed your steps to reproduce I noticed the issue:
eval `ssh-agent -s`; ssh-add my_ssh_cert_authority; ssh-add -E md5 -l; ssh-agent ssh-cert-authority runserver
The last piece of the command "ssh-agent ssh-cert...". That is starting a brand new ssh-agent and running the server within that context. If you change your command to be:
eval `ssh-agent -s`; ssh-add my_ssh_cert_authority; ssh-add -E md5 -l; ssh-cert-authority runserver
You should be good to go. Let me know if this fixes things for you or if you have any other questions.
Thanks! That did indeed do the trick :partying_face:
Do you have any detailed examples of sign_certd_config.json
? I'm trying to figure out how to specify critical options and extensions.
A sub directory in the examples/
folder with the required JSON files along with comments might be a good idea?
I'm unable to sign requests as ssh-cert-authority doesn't seem to be able to find the keys that are stored in ssh-agent.
Steps to reproduce
Server
Generating CA key:
Getting MD5 of CA key:
/root/.ssh_ca/sign_certd_config.json:
Importing key and starting ssh-cert-authority server:
Client
/home/user/.ssh_ca/requster_config.json:
Making a request:
Server
Request response: