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 |
#1298 in Cryptography
5,858 downloads per month
Used in 16 crates
(6 directly)
19KB
469 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
~5–14MB
~183K SLoC