# `Pkcs11ex.PKCS12.Bundle`
[🔗](https://github.com/utaladriz/pkcs11ex/blob/v0.1.0/lib/pkcs11ex/pkcs12.ex#L25)

A parsed PKCS#12 bundle.

`:leaf` is the first cert in the bundle (the end-entity cert in typical
tax-certificate bundles); `:chain` is the rest in bundle order. Use
`SignCore.X509.spki_sha256/1` if you need the leaf's pinning hash.

`:has_private_key` is `true` when the bundle's structure includes a key
bag (whether or not the password was correct enough to decrypt it). The
actual key bytes are never part of this struct.

`:friendly_name` is `nil` in v1; PKCS#12 friendlyName extraction lands
with the native parser.

# `t`

```elixir
@type t() :: %Pkcs11ex.PKCS12.Bundle{
  chain: [SignCore.X509.t()],
  friendly_name: String.t() | nil,
  has_private_key: boolean(),
  leaf: SignCore.X509.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
