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

#1135 in Cryptography

Download history 1383/week @ 2023-12-17 1045/week @ 2023-12-24 1060/week @ 2023-12-31 2323/week @ 2024-01-07 2017/week @ 2024-01-14 2548/week @ 2024-01-21 2340/week @ 2024-01-28 2933/week @ 2024-02-04 2270/week @ 2024-02-11 1524/week @ 2024-02-18 2408/week @ 2024-02-25 3832/week @ 2024-03-03 1747/week @ 2024-03-10 2101/week @ 2024-03-17 2540/week @ 2024-03-24 2461/week @ 2024-03-31

8,977 downloads per month
Used in 24 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–16MB
~187K SLoC