Skip to content

Handle extra headers in PEM encoded private key files #33168

@jkakavas

Description

@jkakavas

Openssl adds some extra headers ( Bag Attributes and Key Attributes ) to keys that it exports from PKCS#12 containers, i.e

Bag Attributes
    friendlyName: mykey
    localKeyID: 54 69 6D 65 20 31 35 33 30 30 32 31 38 30 36 37 31 30 
Key Attributes: <No Attributes>

This information is redundant as the notion of Bags is relevant only for PKCS#12 and can be disregarded, so we should ensure that PemUtils can read private key files even when this is present in a PEM key file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions