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

x/crypto/openpgp: ReadArmoredKeyRing: unsupported feature: unknown critical signature subpacket type 6 #20686

Closed
dolmen opened this issue Jun 15, 2017 · 8 comments

Comments

@dolmen
Copy link

@dolmen dolmen commented Jun 15, 2017

What version of Go are you using (go version)?

go1.8.3
golang.org/x/crypto latest (commit 850760c June 13th, 2017)

What operating system and processor architecture are you using (go env)?

linux/amd64

What did you do?

Parse a public key using golang.org/x/crypto/openpgp
Full test code including the failing key (well known key working with GPG):

package main

import (
	"log"
	"strings"

	"golang.org/x/crypto/openpgp"
)

const keytext = `
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.mit.edu

mQGiBD4+cJARBACxOByY0SJBBuJoFrH2hoqRFny423gY6V3jq1uTgGY/PPaxP+Sqr3RzxPct
4vJcsoo48pwBsMHLrWfORq26zb6eKgmMq/CQo2gzaRbeRxCi3ke4KBmuaREi6RjaZSU94yAB
tDmspUBrpYV8zfZMv5ZIQlg9W1Tu66BFOUrrNeDpKwCgosCp9dtNAMhHkzxs8UJH5i3Uzb0D
/0VLoAE8sOfUXqjc38rxiHuGBFSNC70Ih4mzGUCJMGT4z1X3K6uUawnXMoc8XqPaYnEgOzzt
Mymydtr+urjUwcGnuXDSpV6nulE5irxhzlikSTJy/42QzTMcrdRynffmJo9PRgymMI8GgWaY
G5g3zzGAhi5BA6G8JKfC93IVxiRPBACXJpLBYQljqJY9UDNJuq8nHhKiWHBXdZzrC3LM0FSF
3PKuP/ugc+KBIKXmclNPNFKla/SRbH6dMHsGIy8wnGPI5AtTS0roNQrttv3/ghRT7+OKXrGm
BxZ/KHVrv3PVgiRA5MDr1mIsovfuc9WQnFu2TkgnN/F3pDcrVVSi5b+rZLQzUEFVU0UgQmF0
Y2ggU2lnbmlu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fiE8EGBEC
AA8FAlTXdwMCGwwFCQR+7YAACgkQMo2oZ0UPiezUmgCff3fIeWoZBohj7O+6mYPJxLNOQPcA
oIr2ooJhGGDjRoyCz77qYJgX9JYGiFsEEBECABsFAkPB0/EDBQJ4EIY8W14+XStbQC5dXCo+
JAAACgkQhuayTZJYT+HS3ACfdRxDdeDYDI6YYEydQ52Ck0fbwJEAn2tJAFecXkOpK3Wq/0Np
vZqyop87iFsEEBECABsFAkPB0/cDBQJ4EIY8W14+XStbQC5dXCo+JAAACgkQhuayTZJYT+HJ
5gCg1riugJbBgtw4fLb/X0dsZ4vrJWkAn3UHqGcUghBmxPs+5BpHbRiHJvij
=SbNu
-----END PGP PUBLIC KEY BLOCK-----
`

func main() {
	_, err := openpgp.ReadArmoredKeyRing(strings.NewReader(keytext))
	if err != nil {
		log.Fatalf("%T %s", err, err)
	}
	log.Print("OK.")
}

What did you expect to see?

2017/06/15 12:07:57 OK.

What did you see instead?

2017/06/15 12:07:57 errors.UnsupportedError openpgp: unsupported feature: unknown critical signature subpacket type 6
exit status 1

It looks like keybase has worked on this issue and may have a partial fix or maybe just a workaround. See keybase/go-crypto#17

@dolmen dolmen changed the title openpgp: unsupported feature: unknown critical signature subpacket type 6 openpgp.ReadArmoredKeyRing: unsupported feature: unknown critical signature subpacket type 6 Jun 15, 2017
@bradfitz bradfitz changed the title openpgp.ReadArmoredKeyRing: unsupported feature: unknown critical signature subpacket type 6 x/crypto/openpgp: ReadArmoredKeyRing: unsupported feature: unknown critical signature subpacket type 6 Jun 15, 2017
@gopherbot gopherbot added this to the Unreleased milestone Jun 15, 2017
dolmen added a commit to dolmen-go/CPAN that referenced this issue Jun 16, 2017
Unfortunately this doesn't work because the openpgp doesn't fully
implement parsing of this keyring.
See golang/go#20686
dolmen added a commit to dolmen-go/CPAN that referenced this issue Jun 16, 2017
openpgp.ReadEntity is inlined and adapted to bypass the unsupported
packets.
@SCKelemen
Copy link
Contributor

@SCKelemen SCKelemen commented Jul 7, 2017

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Jul 7, 2017

@SCKelemen, what do you mean by writing your name on a bunch of bugs like this?

@SCKelemen
Copy link
Contributor

@SCKelemen SCKelemen commented Jul 7, 2017

@bradfitz I want to watch the issue, so it comes up in my notifications involving me. If these issues aren't being worked on, I can try and take them on in my 20% time.

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Jul 7, 2017

Can't you just hit the Subscribe button in the right sidebar?

@SCKelemen
Copy link
Contributor

@SCKelemen SCKelemen commented Jul 7, 2017

I'm already subscribed, just overwhelmed by all of the notifications. I'll take some time and unfollow all the other issues

@cespare
Copy link
Contributor

@cespare cespare commented Jul 7, 2017

@SCKelemen I suggest finding some other way of writing down the issues you intend to look at later. For example, personally, I keep them organized in a few folders with my other bookmarks.

Writing comments on issues updates a lot of people so it's not a good way to keep track of things for yourself.

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Jul 7, 2017

I asked why you're dropping your name in places, and you said "to watch the issue". I then asked why you don't subscribe to it, and you said you get too many notifications. I'm confused.

@FiloSottile
Copy link
Contributor

@FiloSottile FiloSottile commented Mar 29, 2021

Per the accepted #44226 proposal and due to lack of maintenance, the golang.org/x/crypto/openpgp package is now frozen and deprecated. No new changes will be accepted except for security fixes. The package will not be removed.

If this is a security issue, please email security@golang.org and we will assess it and provide a fix.

If you're looking for alternatives, consider the crypto/ed25519 package for simple signatures, golang.org/x/mod/sumdb/note for inline signatures, or filippo.io/age for encryption. You can read a summary of OpenPGP issues and alternatives here.

If you are required to interoperate with OpenPGP systems and need a maintained package, we suggest considering one of multiple community forks of golang.org/x/crypto/openpgp. We don't endorse any specific one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants