Skip to content

crypto/x509: unable to parse Attribute Certificate #49270

Description

@salrashid123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions