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

#1298 in Cryptography

Download history 1066/week @ 2024-08-15 943/week @ 2024-08-22 897/week @ 2024-08-29 670/week @ 2024-09-05 1207/week @ 2024-09-12 1482/week @ 2024-09-19 1031/week @ 2024-09-26 831/week @ 2024-10-03 894/week @ 2024-10-10 1094/week @ 2024-10-17 1259/week @ 2024-10-24 1759/week @ 2024-10-31 1545/week @ 2024-11-07 2102/week @ 2024-11-14 1486/week @ 2024-11-21 425/week @ 2024-11-28

5,858 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
~183K SLoC