-
Notifications
You must be signed in to change notification settings - Fork 174
Add support for OpenSSH certificates, resolve #31 #901
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
base: master
Are you sure you want to change the base?
Add support for OpenSSH certificates, resolve #31 #901
Conversation
norrisjeremy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can you run
mvn formatter:formatto ensure that everything is formatted correctly? - Does this support SSH certs for host keys? If not, we need to add support for that too, as I'm opposed to only adding support SSH certs for user pubkey auth, w/o also adding support for SSH certs as host keys as well at the same time.
src/main/java/com/jcraft/jsch/OpenSshCertificateAwareIdentityFile.java
Outdated
Show resolved
Hide resolved
src/main/java/com/jcraft/jsch/OpenSshCertificateAwareIdentityFile.java
Outdated
Show resolved
Hide resolved
|
@norrisjeremy is there more feedback to this, as it would be nice to get to the finish line, thanks |
|
Hi @norrisjeremy, thanks for following up. I marked the comments as resolved on GitHub because I had already addressed them locally and didn’t want to lose track of your suggestions. I’m currently adding support for host keys as well (it’s nearly finished) and I’ll push everything together in the next update. Please let me know if you have any additional suggestions in the meantime. |
Hi @luigidemasi, Great, thanks! We are excited to have someone step up and contribute this work! Thanks, |
I added the support for Host Certificate, let me know wdyt. |
|
Great to see progress on this one. If we are getting close to the finish line it would be good to do the last review and update the reported findings so fingers crossed we can get this merged and released. Thank you. |
I probably won't have time to start reviewing this again until next week. |
Thanks for the update, no problem. Just glad we are on path to the goal line. |
|
Sorry to bother - but would be good to get this reviewed |
HI @davsclaus, Yes, I haven't forgotten, I will try to review it when I have some time available. Thanks, |
norrisjeremy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few initial comments, I still have a lot left to review.
src/main/java/com/jcraft/jsch/OpenSshCertificateHostKeyVerifier.java
Outdated
Show resolved
Hide resolved
e3194d7 to
7db8379
Compare
aa826fc to
b2240d6
Compare
norrisjeremy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your patience as I continue review this.
Aside from a few small stylistic nits I've pointed out, the only signficant item I can see is API changes proposed for KeyExchange (changing the next() method to no longer be abstract & introducing the the doNext() and getFingerprint(byte[]) methods).
As I mentioned inline, if these API changes to KeyExchange aren't necessary for the cert support (which I don't believe they are, but I could have missed it since this is such a large PR), I'd rather they not be made (at least as part of this PR).
| } | ||
|
|
||
|
|
||
| protected boolean doNext(Buffer buf, int sshMessageType) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can see, the cert support being introduced here doesn't seem to require the changes here though to the next() method (and introduction of doNext()), right?
If that's true, then I'd rather not introduce API changes like this into KeyExchange.
|
Thanks for the progress on this one - looks like we are getting close to be ready. @luigidemasi there is a few things still to do thanks. |
b2240d6 to
3002923
Compare
|
Hi @luigidemasi, Can you run Thanks! |
3002923 to
6147bd3
Compare
@norrisjeremy done! |
6147bd3 to
fd2e894
Compare
a57ab9e to
95f18cb
Compare
95f18cb to
0556aad
Compare
… Host Certificate
… code review for Host Certificate support
… code review for Host Certificate support - part2
… code review for Host Certificate support - part3
0556aad to
0cf60d9
Compare
|



No description provided.