Module pkcs12

Module pkcs12 

Source
Expand description

PKCS#12 / PFX bundle — parsing and creation.

A PKCS#12 file bundles a private key, its end-entity certificate, and an optional chain of CA certificates into a single password-protected blob.

§Example

let der = std::fs::read("bundle.p12").unwrap();
let p12 = Pkcs12::from_der(&der).unwrap();
let (key, cert, chain) = p12.parse("secret").unwrap();

Structs§

Pkcs12
A PKCS#12 / PFX bundle (PKCS12*).