-
Notifications
You must be signed in to change notification settings - Fork 671
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
Client: Allow explicitely specifying a publicKey #808
base: master
Are you sure you want to change the base?
Conversation
This is to support SSH certificates. As before the privateKey will be used for the publicKey (i.e. the derived publicKey) if nothing is given. The given publicKey is checked to match the given privateKey.
180e91e
to
db08164
Compare
Can this get merged in? |
confirm this is worked for me with Vault module Signed SSH Certificates |
Tested this out with the latest mscdex/ssh2:master and two sets of user certificates (
Removed the check
Upon closer examination, |
I did not realize that mscdex/ssh2-streams#137 was still open. Merged those changes into my local workspace and everything works perfectly. Please disregard the last comment. |
Ping: Any chance we can get this merged soon? |
I haven't forgotten about this feature, however the PR will need to be updated to match the internal changes in v1.0.0. |
Whoops. Appears I missed the email notification about this comment. @mscdex Will you handle this, please? You know the internals better than I do and it's almost 2 years since I last touched it myself. |
Is there any chance this to be merged soon? I'm considering using this module, but it's lacking authentication with signed public key. |
Hi all, We also need this feature urgently. Email me via [email protected] if you are interested. Thanks! |
@david-autonoma This PR is way outdated and would likely need to be adapted to the 1.0 release of the library. This PR was developed on company time, where we currently don't have a need for this feature (as we've worked around it internally). I'm afraid the costs of relearning how the current version of this library works after 4 years alone would likely exceed the offered compensation. |
I don't remember the details after 4 years. I believe we used a regular public / private key pair, because while using certificates would have been nicer, the cost of maintaining a fork of this library would not have been worth it. |
(see mscdex/ssh2-streams#137)
This is to support SSH certificates. As before the privateKey will
be used for the publicKey (i.e. the derived publicKey) if nothing
is given.
The given publicKey is checked to match the given privateKey.
Closes #551
Example: