importEncryptedSec1PemOrThrow
importEncryptedSec1PemOrThrow
Import an EC private key from legacy Proc-Type: 4,ENCRYPTED PEM (SEC 1).
Decrypts OpenSSL's traditional PEM encryption format.
ts
function importEncryptedSec1PemOrThrow(
pem: string,
password: string,
algorithm?: ImportEcKeyInput,
): Promise<CryptoKey>Parameters
pem:stringpassword:stringalgorithm?:ImportEcKeyInput
See also
exportEncryptedSec1Pemfor the inverse operationimportEncryptedPkcs8Pemfor modern PBES2 encryption