Skip to content
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

support for OpenSSH's certificate system #108

Open
4bo opened this issue Dec 8, 2022 · 2 comments
Open

support for OpenSSH's certificate system #108

4bo opened this issue Dec 8, 2022 · 2 comments

Comments

@4bo
Copy link

4bo commented Dec 8, 2022

As of version 0.78, putty supports OpenSSH's certificate system (in PuTTY Configuration, from Connection -> SSH -> Auth -> Credentials -> Certificate to use with the privatekey).
Is there any way to use this kind of cert while corresponding private key is stored in an HSM?

@NoMoreFood
Copy link
Owner

I don’t see a clear path to implementation give how unique the OpenSSH certificates are. Curious if anyone else has input.

@gamringer
Copy link

I got putty-cac 0.78 to work with openssh certs, at least for CAPI certs (tested with a PIV-I card), so it may just work the same with PKCS certs (HSM via PKCS11).

  1. Create a new putty session
  2. Set the remote hostname, default username in usual locations
  3. In Connection -> SSH -> Auth -> Credentials -> Certificate to use with the privatekey set the openssh cert corresponding to the key you want to use
  4. In `Connection -> SSH -> Certificate -> Set CAPI Cert (Set PKCS Cert) in your case
  5. Open your connection

I think this is fine when working with directly with putty.exe, but it won't work when using plink and pageant. The next step would be to add a way in pageant to associate a key with an openssh cert in a persistent way and let putty use it in the same way as putty.exe does. Eventually perhaps even take the openssh cert directly from a SAN value (type uri, value of urn:example:{base64 encoded cert} or something) or a custom extension in the X509 certificate matching the key, either in CAPI or in the HSM (find by label with object type certificate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants