importPkcs1DerOrThrow
importPkcs1DerOrThrow
Import an RSA private key from DER-encoded PKCS#1 RSAPrivateKey.
PKCS#1 is the legacy RSA-only format. Internally converts to PKCS#8 for import.
ts
function importPkcs1DerOrThrow(
der: Uint8Array,
algorithm: ImportRsaKeyInput,
): Promise<CryptoKey>Parameters
der:Uint8Arrayalgorithm:ImportRsaKeyInput
See also
exportPkcs1Derfor the inverse operationimportPkcs1Pemfor PEM input