exportPkcs1Der
Export an RSA private key as DER-encoded PKCS#1 RSAPrivateKey.
PKCS#1 is the legacy RSA-only format. For algorithm-agnostic export, use exportPkcs8Der.
ts
function exportPkcs1Der(
privateKey: CryptoKey,
): Promise<Uint8Array>Parameters
privateKey:CryptoKey
Throws
Error— If the key is not an RSA key
See also
importPkcs1Derfor the inverse operationexportPkcs1Pemfor PEM output