importEncryptedPkcs8Der
importEncryptedPkcs8Der
Import a private key from DER-encoded PBES2-encrypted PKCS#8 EncryptedPrivateKeyInfo.
ts
function importEncryptedPkcs8Der(
der: Uint8Array,
password: string,
algorithm?: PrivateKeyImportInput,
options?: ImportEncryptedKeyOptions,
): Promise<ImportEncryptedKeyResult<CryptoKey>>Parameters
der:Uint8Arraypassword:stringalgorithm?:PrivateKeyImportInputoptions?:ImportEncryptedKeyOptions
See also
importEncryptedPkcs8DerOrThrowfor the throwing variant