-
Notifications
You must be signed in to change notification settings - Fork 703
Add ecdsa cert support for client through SSH agent #1440
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?
Conversation
|
@mscdex |
|
@mscdex |
|
|
||
| function tryParseAsCert(data, baseType, comment) { | ||
| if (!isSupportedCertType(baseType)) | ||
| return new Error(`Unsupported OpenSSH cert type: ${baseType}`); |
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.
Personal note (dunno if it really makes sense): This is the only caller of isSupportedCertType and the code below generates the very same error in its default: case. So, you could remove isSupportedCertType and the two lines above without any change in behaviour.
Still, it might make sense to keep things like this just for consistency with the rest of the library (there is also isSupportedKeyType()). I'll leave that to @mscdex to decide.
|
Hi @mscdex! I'm wondering if there are any comments or updates on this matter? |
|
Hello @mscdex! |
Co-authored-by: Amin Ya <[email protected]>
|
Hello @mscdex! |
Add ecdsa-sha2-nistp(256|384|521)[email protected] for client through SSH_AGENT
It is work in case from #910 and #858
I test on my server like this: