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
pem:stringalgorithm:ImportRsaKeyInput
See also
exportPkcs1Pemfor the inverse operationimportEncryptedPkcs1Pemfor encrypted PEM