Skip to content

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

See also

Released under the MIT License.