2 unstable releases

0.12.0 Nov 25, 2024
0.11.0 May 7, 2024

#1519 in Cryptography

Download history 840/week @ 2024-11-15 840/week @ 2024-11-22 150/week @ 2024-11-29 163/week @ 2024-12-06 142/week @ 2024-12-13 168/week @ 2024-12-20 42/week @ 2024-12-27 155/week @ 2025-01-03 141/week @ 2025-01-10 123/week @ 2025-01-17 84/week @ 2025-01-24 117/week @ 2025-01-31 185/week @ 2025-02-07 162/week @ 2025-02-14 118/week @ 2025-02-21 147/week @ 2025-02-28

647 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
~134K SLoC