importEncryptedPkcs1PemOrThrow
importEncryptedPkcs1PemOrThrow
Import an RSA private key from legacy Proc-Type: 4,ENCRYPTED PEM (PKCS#1).
Decrypts OpenSSL's traditional PEM encryption format.
ts
function importEncryptedPkcs1PemOrThrow(
pem: string,
password: string,
algorithm: ImportRsaKeyInput,
): Promise<CryptoKey>Parameters
pem:stringpassword:stringalgorithm:ImportRsaKeyInput
See also
exportEncryptedPkcs1Pemfor the inverse operationimportEncryptedPkcs8Pemfor modern PBES2 encryption