Skip to content

PfxPrivateKeyBagInput

A private key to embed in a PFX container. Input for createPfx.

ts
interface PfxPrivateKeyBagInput {
	readonly privateKey: PfxPrivateKeySource;
	readonly attributes?: PfxBagAttributesInput;
}

Properties

  • readonly privateKey: PfxPrivateKeySource — Private key as a WebCrypto CryptoKey or raw PKCS#8 DER bytes.
  • readonly attributes?: PfxBagAttributesInput — Optional bag-level attributes (friendly name, local key ID).

Released under the MIT License.