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

#1318 in Cryptography

Download history 1146/week @ 2024-07-23 1775/week @ 2024-07-30 1364/week @ 2024-08-06 1060/week @ 2024-08-13 989/week @ 2024-08-20 1010/week @ 2024-08-27 662/week @ 2024-09-03 946/week @ 2024-09-10 1545/week @ 2024-09-17 959/week @ 2024-09-24 1011/week @ 2024-10-01 817/week @ 2024-10-08 970/week @ 2024-10-15 1214/week @ 2024-10-22 1705/week @ 2024-10-29 1540/week @ 2024-11-05

5,658 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
~184K SLoC