The private key
Optionalpassphrase: string
The passphrase for the private key if it is encrypted
Optionalname: string
The name of the private key (i.e. the name of the file it came from, if applicable); used for error handling
The unencrypted PKCS#8 PEM encoded private key
Parses a private key and returns it as an unencrypted PKCS#8 PEM encoded string Supported private key formats include: