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

Update crypto/ssh to support ED25519 SSH keys #9345

Closed
wants to merge 1 commit into from

Conversation

passcod
Copy link

@passcod passcod commented Oct 12, 2016

ED25519 key support was added in golang/crypto@1e61df8. This is
needed to parse and support "new format" SSH keys prefixed with:

-----BEGIN OPENSSH PRIVATE KEY-----

Fixes #5156

ED25519 key support was added in golang/crypto@1e61df8. This is
needed to parse and support "new format" SSH keys prefixed with:

    -----BEGIN OPENSSH PRIVATE KEY-----

Fixes hashicorp#5156
@jen20
Copy link
Contributor

jen20 commented Oct 12, 2016

Hi @passcod! Thanks for opening a pull request. I agree this does need to be done - however I think there is an issue with the way govendor has been used to generate the diff - we have multiple commit SHAs for the same git repository. Could you take a look at rectifying this prior to merging? Thanks!

@jen20 jen20 added core dependencies Auto-pinning labels Oct 12, 2016
@passcod
Copy link
Author

passcod commented Oct 12, 2016

Ah, originally I'd done a

govendor fetch golang.org/x/crypto

but that vendored the entire crypto repo, which, looking at the existing vendor.json, I thought you were trying to avoid (you're only pulling the SSH subpath). So instead I ran

govendor fetch golang.org/x/crypto/ssh

which updated the ssh subpath and then pulled in the ed25519 subpaths along because they're dependencies I guess.

Should I remove crypto/ssh and fetch in the entire crypto library?

stack72 added a commit that referenced this pull request Oct 27, 2016
This is the fix up of #9345
@stack72 stack72 mentioned this pull request Oct 27, 2016
stack72 added a commit that referenced this pull request Oct 27, 2016
This is the fix up of #9345
stack72 added a commit that referenced this pull request Oct 27, 2016
This is the fix up of #9345
@stack72
Copy link
Contributor

stack72 commented Oct 27, 2016

Hi @passcod

Thanks for the work here - I have just updated the dependency in #9661

Thanks

Paul

@stack72 stack72 closed this Oct 27, 2016
@passcod passcod deleted the support-ed25519-ssh-keys branch October 28, 2016 01:10
@passcod
Copy link
Author

passcod commented Oct 28, 2016

Thanks

mathieuherbert pushed a commit to mathieuherbert/terraform that referenced this pull request Oct 30, 2016
gusmat pushed a commit to gusmat/terraform that referenced this pull request Dec 6, 2016
@ghost
Copy link

ghost commented Apr 21, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unsupported key type "OPENSSH PRIVATE KEY"
3 participants