Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write private key in accordance with Asymmetric Key Packages RFC (#144)
The key is marshaled using [MarshalPKCS8PrivateKey](https://pkg.go.dev/crypto/x509#MarshalPKCS8PrivateKey) which suggests the "PRIVATE KEY" PEM block type, and [Asymmetric Key Packages RFC](https://datatracker.ietf.org/doc/html/rfc5958) 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----- Signed-off-by: Aliaksei Shainiuk <[email protected]>
- Loading branch information