Pkcs12

data class Pkcs12(val privateKey: EcPrivateKey, val certChain: X509CertChain)

A PKCS#12 (PFX) container holding an EC private key and its associated certificate chain according to RFC 7292.

Parameters

privateKey

the private key.

certChain

the certificate chain, where the first certificate must correspond to privateKey.

Constructors

Link copied to clipboard
constructor(privateKey: EcPrivateKey, certChain: X509CertChain)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun toDer(passphrase: String? = null, iterations: Int = DEFAULT_ITERATIONS, random: Random = Crypto.secureRandom): ByteString

Encodes this PKCS#12 container into DER format.