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

#1171 in Cryptography

Download history 1414/week @ 2024-03-14 3291/week @ 2024-03-21 2217/week @ 2024-03-28 1815/week @ 2024-04-04 2519/week @ 2024-04-11 2526/week @ 2024-04-18 2766/week @ 2024-04-25 1982/week @ 2024-05-02 2270/week @ 2024-05-09 1941/week @ 2024-05-16 1859/week @ 2024-05-23 2350/week @ 2024-05-30 1762/week @ 2024-06-06 1772/week @ 2024-06-13 2278/week @ 2024-06-20 1362/week @ 2024-06-27

7,739 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
~179K SLoC