Skip to content

importPkcs1Pem ​

importPkcs1Pem ​

Import an RSA private key from PEM-encoded PKCS#1 RSAPrivateKey.

ts
function importPkcs1Pem(
	pem: string,
	algorithm: ImportRsaKeyInput,
): Promise<ImportKeyResult<CryptoKey>>

Parameters

See also

  • importPkcs1PemOrThrow for the throwing variant

Released under the MIT License.