spiffe / spiffe-helper

The SPIFFE Helper is a tool that can be used to retrieve and manage SVIDs on behalf of a workload
Apache License 2.0
40 stars 39 forks source link

Write private key in accordance with Asymmetric Key Packages RFC #144

Closed iron-s closed 4 months ago

iron-s commented 4 months ago

The key is marshaled using MarshalPKCS8PrivateKey which suggests the "PRIVATE KEY" PEM block type, and Asymmetric Key Packages RFC states:

When .p8 files are PEM encoded they use the .pem file extension. PEM encoding is ... Base64 encoding, see Section 4 of [RFC4648], of the DER-encoded PrivateKeyInfo sandwiched between: -----BEGIN PRIVATE KEY----- -----END PRIVATE KEY-----

Closes #87