mirror of
https://github.com/rustfs/rustfs.git
synced 2026-05-06 22:28:16 +08:00
Signed-off-by: 唐小鸭 <tangtang1251@qq.com> Signed-off-by: houseme <housemecn@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: loverustfs <hello@rustfs.com>
718 B
718 B
TLS Bundle Generator
Generate a local TLS/mTLS certificate bundle for RustFS tests with:
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls
Overwrite an existing bundle with:
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls --force
Change the validity window with:
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls --days 30
Generated files:
rustfs_cert.pemrustfs_key.pemca.crtpublic.crtclient_ca.crtclient_cert.pemclient_key.pem
Notes:
- The command refuses to overwrite existing bundle files unless
--forceis set. --daysmust be a positive integer.- The default output directory is
target/tls.