Hello there, Currently working on a problem containing .pem file. The structure of the file is given as below:
Bag Attributes
values
Key Attributes
values
-----BEGIN PRIVATE KEY-----
key
-----END PRIVATE KEY-----
So, do the bag attributes and key attributes matter in use? If yes, what is their purpose?
CodePudding user response:
Bag attributes are generated by OpenSSL during PFX conversion to PKCS#1/PKCS#8 PEM private key files. These attributes are not signed and are completely optional. See this thread for more information: What are bag attributes and how can i generate them?