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

crypto/x509: unable to parse Attribute Certificate #49270

Open
salrashid123 opened this issue Nov 1, 2021 · 2 comments
Open

crypto/x509: unable to parse Attribute Certificate #49270

salrashid123 opened this issue Nov 1, 2021 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@salrashid123
Copy link

salrashid123 commented Nov 1, 2021

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

$ go version
go version go1.17.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

Attempt to parse Attribute Certificate uising "crypto/x509"

Here is the repro:

https://play.golang.org/p/2Ngkmat3bqe

Note, i got the given attribute certificate from the sample in the TCG Platform Certificate Profile (see the appendix). I also saw used java's bouncycastle provider to genrate the same here in my own repo

What did you expect to see?

Proper parsing of the structure

What did you see instead?

x509: inner and outer signature algorithm identifiers don't match

I suspect that error isn't accurately reflecting the root cause here, IMO


Some additional context.

@mdlayher mdlayher changed the title crypto/x509 unable to parse Attribute Certificate crypto/x509: unable to parse Attribute Certificate Nov 2, 2021
@seankhliao seankhliao added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 2, 2021
@seankhliao
Copy link
Member

cc @FiloSottile

@salrashid123
Copy link
Author

@seankhliao seankhliao added this to the Unplanned milestone Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants