exportSec1Der
Export an EC private key as DER-encoded SEC 1 ECPrivateKey.
SEC 1 is the legacy EC-only format. For algorithm-agnostic export, use exportPkcs8Der.
ts
function exportSec1Der(
privateKey: CryptoKey,
): Promise<Uint8Array>Parameters
privateKey:CryptoKey
Throws
Error— If the key is not an EC key
See also
importSec1Derfor the inverse operationexportSec1Pemfor PEM output