Crate test_cert_gen[][src]

Utilities to generate keys for tests.

Uses OpenSSL command line utility to generate the certificates.

Structs

Cert

DER-encoded X.509 certificate.

CertAndPrivateKey
ClientKeys

Client certificate

Keys

Client and server keys

Pkcs12

DER-encoded

Pkcs12AndPassword

Pair of PKCS #12 and password.

PrivateKey

DER-encoded.

ServerKeys

Server keys

Functions

gen_keys
keys

Generate keys

pem_to_cert_key_pair

Parse PEM file into a pair of certificate and private key.