Skip to content

importEncryptedPkcs1Pem

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

ts
function importEncryptedPkcs1Pem(
	pem: string,
	password: string,
	_: unknown,
): Promise<ImportEncryptedKeyResult<CryptoKey>>

Parameters

  • pem: string
  • password: string
  • _: unknown

See also

  • importEncryptedPkcs1PemOrThrow for the throwing variant

Released under the MIT License.