jsch icon indicating copy to clipboard operation
jsch copied to clipboard

Support for the SSH Signature format

Open jvanzyl opened this issue 2 years ago • 4 comments

Is there support for the SSH signature format in JSCH?

Reference: https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.sshsig

If not, I'd like to make an attempt to implement it.

jvanzyl avatar Mar 11 '22 13:03 jvanzyl

Hi @jvanzyl,

This isn't supported by JSch currently. If you would like to implement it and submit a PR, that would be great!

Thanks, Jeremy

norrisjeremy avatar Mar 11 '22 14:03 norrisjeremy

Where would you like it in the tree? I'll try to implement this next week.

jvanzyl avatar Mar 11 '22 14:03 jvanzyl

I don't have any strong preferences. I'm assuming this will basically be a standalone set of APIs to mimic the the capabilities of ssh-keygen -Y find-principals | match-principals | check-novalidate | sign | verify?

norrisjeremy avatar Mar 11 '22 14:03 norrisjeremy

Correct, to be used as part of Sigstore integration I'm working on:

https://github.com/sigstore/rekor/blob/main/types.md#ssh https://github.com/sigstore/rekor/blob/main/pkg/pki/ssh/README.md

jvanzyl avatar Mar 11 '22 14:03 jvanzyl