6 releases (breaking)

0.9.0 Apr 28, 2022
0.8.0 Apr 28, 2022
0.7.0 Oct 26, 2021
0.6.0 Oct 24, 2021
0.1.0 Jun 29, 2020

#3 in #client-certificate

Download history 1545/week @ 2024-06-29 1754/week @ 2024-07-06 1477/week @ 2024-07-13 1253/week @ 2024-07-20 1636/week @ 2024-07-27 1428/week @ 2024-08-03 1073/week @ 2024-08-10 1084/week @ 2024-08-17 1028/week @ 2024-08-24 649/week @ 2024-08-31 921/week @ 2024-09-07 1341/week @ 2024-09-14 1244/week @ 2024-09-21 977/week @ 2024-09-28 842/week @ 2024-10-05 970/week @ 2024-10-12

4,330 downloads per month
Used in 23 crates (10 directly)

MIT/Apache

19KB
469 lines

GitHub Workflow Status License crates.io

test-cert-gen

Utility to generate certificates for tests.

test_cert_gen::gen_keys()

returns:

  • server certificate and private key pair in DER or PKCS12 format
  • CA DER file to be used on the client

This is typically enough to configure a TLS server and client for unit/integration tests.

Certificates are generated with openssl command.

Generated certificates expire in a day.


lib.rs:

Utilities to generate keys for tests.

Uses OpenSSL command line utility to generate the certificates.

Dependencies

~5–14MB
~184K SLoC