Loads a user private key for publickey authentication.
Accepts an extractable private CryptoKey or a PEM in any of these forms:
unencrypted PKCS#8 (BEGIN PRIVATE KEY), encrypted PKCS#8 (BEGIN ENCRYPTED PRIVATE KEY, PBES2), or the OpenSSH format (BEGIN OPENSSH PRIVATE KEY), encrypted or not.
Encrypted keys require passphrase.
Parameters
input: CryptoKey|{passphrase?:string;pem:string}
A { pem, passphrase? } object or an extractable private CryptoKey.
Loads a user private key for publickey authentication.
Accepts an extractable private CryptoKey or a PEM in any of these forms: unencrypted PKCS#8 (
BEGIN PRIVATE KEY), encrypted PKCS#8 (BEGIN ENCRYPTED PRIVATE KEY, PBES2), or the OpenSSH format (BEGIN OPENSSH PRIVATE KEY), encrypted or not. Encrypted keys requirepassphrase.