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

#1417 in Cryptography

Download history 1638/week @ 2024-10-30 1588/week @ 2024-11-06 2058/week @ 2024-11-13 1641/week @ 2024-11-20 588/week @ 2024-11-27 635/week @ 2024-12-04 1291/week @ 2024-12-11 2062/week @ 2024-12-18 589/week @ 2024-12-25 735/week @ 2025-01-01 1264/week @ 2025-01-08 1823/week @ 2025-01-15 1140/week @ 2025-01-22 1215/week @ 2025-01-29 1050/week @ 2025-02-05 738/week @ 2025-02-12

4,513 downloads per month
Used in 16 crates (6 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
~194K SLoC