2 unstable releases

0.12.0 Nov 25, 2024
0.11.0 May 7, 2024

#1553 in Cryptography

Download history 1032/week @ 2024-11-19 277/week @ 2024-11-26 119/week @ 2024-12-03 189/week @ 2024-12-10 151/week @ 2024-12-17 104/week @ 2024-12-24 92/week @ 2024-12-31 138/week @ 2025-01-07 136/week @ 2025-01-14 107/week @ 2025-01-21 95/week @ 2025-01-28 170/week @ 2025-02-04 199/week @ 2025-02-11 105/week @ 2025-02-18 113/week @ 2025-02-25 133/week @ 2025-03-04

569 downloads per month
Used in 16 crates (9 directly)

MIT/Apache

19KB
463 lines

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

~2–11MB
~133K SLoC