2 unstable releases

0.12.0 Nov 25, 2024
0.11.0 May 7, 2024

#1430 in Cryptography

Download history 117/week @ 2025-03-09 148/week @ 2025-03-16 98/week @ 2025-03-23 144/week @ 2025-03-30 124/week @ 2025-04-06 157/week @ 2025-04-13 192/week @ 2025-04-20 198/week @ 2025-04-27 121/week @ 2025-05-04 125/week @ 2025-05-11 78/week @ 2025-05-18 258/week @ 2025-05-25 120/week @ 2025-06-01 51/week @ 2025-06-08 107/week @ 2025-06-15 156/week @ 2025-06-22

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

MIT/Apache

19KB
463 lines

Utilities to generate keys for tests.

Uses OpenSSL command line utility to generate the certificates.


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.

Dependencies

~2–11MB
~141K SLoC