x/crypto/ssh: unable to parse certificates #45010
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes - AFAIK go1.16 is the latest release
What operating system and processor architecture are you using (
go env
)?tl;dr, linux, nixos, x86
go env
OutputWhat did you do?
Where test.sh is a pretty basic generate a ssh key, sign it, try and parse it.
test.go is just a dummy program which tries to parse the file using ssh.ParsePublicKey as #22046 and the docs at https://pkg.go.dev/golang.org/x/crypto/ssh#Certificate suggest
What did you expect to see?
I expected the certificate to be parsed.
What did you see instead?
The ParsePublicKey method fails with a short read.
Note that this appears to be key type agnostic - dropping the ed25519 type (so it's thus rsa), fails with the same error message.
The text was updated successfully, but these errors were encountered: