exportPkcs1Pem
Export an RSA private key as PEM-encoded PKCS#1 RSAPrivateKey.
ts
function exportPkcs1Pem(
privateKey: CryptoKey,
): Promise<string>Parameters
privateKey:CryptoKey
Throws
Error— If the key is not an RSA key
See also
importPkcs1Pemfor the inverse operationexportEncryptedPkcs1Pemfor password-protected export