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

#1427 in Cryptography

Download history 2050/week @ 2024-11-15 1148/week @ 2024-11-22 657/week @ 2024-11-29 847/week @ 2024-12-06 1258/week @ 2024-12-13 1778/week @ 2024-12-20 593/week @ 2024-12-27 1031/week @ 2025-01-03 1380/week @ 2025-01-10 1789/week @ 2025-01-17 1034/week @ 2025-01-24 1114/week @ 2025-01-31 1003/week @ 2025-02-07 937/week @ 2025-02-14 1434/week @ 2025-02-21 1434/week @ 2025-02-28

4,998 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–15MB
~201K SLoC