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

Comments

@salrashid123
Copy link

@salrashid123 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 label Nov 2, 2021
@seankhliao
Copy link
Member

@seankhliao seankhliao commented Nov 2, 2021

cc @FiloSottile

@salrashid123
Copy link
Author

@salrashid123 salrashid123 commented Nov 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

2 participants