importEncryptedPkcs8Pem
importEncryptedPkcs8Pem
Import a private key from PEM-encoded PBES2-encrypted PKCS#8 EncryptedPrivateKeyInfo.
ts
function importEncryptedPkcs8Pem(
pem: string,
password: string,
algorithm?: PrivateKeyImportInput,
options?: ImportEncryptedKeyOptions,
): Promise<ImportEncryptedKeyResult<CryptoKey>>Parameters
pem:stringpassword:stringalgorithm?:PrivateKeyImportInputoptions?:ImportEncryptedKeyOptions
See also
importEncryptedPkcs8PemOrThrowfor the throwing variant