#test #gen #testing #tls #der #e #client #tests #utility #cert

bin+lib test-cert-gen

Utility to generate certificates for tests (e. g. for TLS)

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
Download history 1606/week @ 2022-06-04 1277/week @ 2022-06-11 1343/week @ 2022-06-18 1146/week @ 2022-06-25 1300/week @ 2022-07-02 1092/week @ 2022-07-09 1293/week @ 2022-07-16 1497/week @ 2022-07-23 1482/week @ 2022-07-30 1641/week @ 2022-08-06 1171/week @ 2022-08-13 1542/week @ 2022-08-20 1437/week @ 2022-08-27 1243/week @ 2022-09-03 1137/week @ 2022-09-10 1006/week @ 2022-09-17

5,052 downloads per month
Used in 14 crates (7 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

~1.2–1.7MB
~44K SLoC