Skip to content

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

See also

Released under the MIT License.