#tls #format #openssl

bin+lib test-cert-gen

Utility to generate certificates for tests (e. g. for TLS)

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

#1099 in Cryptography

Download history 1258/week @ 2024-12-13 1778/week @ 2024-12-20 593/week @ 2024-12-27 1031/week @ 2025-01-03 1380/week @ 2025-01-10 1789/week @ 2025-01-17 1034/week @ 2025-01-24 1114/week @ 2025-01-31 1003/week @ 2025-02-07 937/week @ 2025-02-14 1434/week @ 2025-02-21 1477/week @ 2025-02-28 755/week @ 2025-03-07 630/week @ 2025-03-14 492/week @ 2025-03-21 602/week @ 2025-03-28

2,570 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.

Dependencies

~5–15MB
~203K SLoC