Skip to content

importEncryptedPkcs1Pem ​

importEncryptedPkcs1Pem ​

Import an RSA private key from legacy Proc-Type: 4,ENCRYPTED PEM (PKCS#1).

ts
function importEncryptedPkcs1Pem(
	pem: string,
	password: string,
	algorithm: ImportRsaKeyInput,
): Promise<ImportEncryptedKeyResult<CryptoKey>>

Parameters

See also

  • importEncryptedPkcs1PemOrThrow for the throwing variant

Released under the MIT License.