Skip to content

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

See also

Released under the MIT License.