Skip to content

importPkcs1PemOrThrow ​

importPkcs1PemOrThrow ​

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

Expects the -----BEGIN RSA PRIVATE KEY----- PEM label.

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

Parameters

See also

Released under the MIT License.