trojan-cert
Certificate generation utilities for trojan-rs.
Overview
This crate provides a CLI for generating self-signed TLS certificates, useful for development and testing.
- ECDSA P-256 — Fast, modern elliptic curve key pair
- SAN support — Multiple domain names and IP addresses
- PEM output — Standard certificate and key files
Usage
# Generate a self-signed certificate
Output:
Certificate generated successfully:
Certificate: /etc/trojan/cert.pem
Private key: /etc/trojan/key.pem
Valid for: 365 days
Domains: example.com, localhost
IPs: 127.0.0.1
As a library
use ;
let args = GenerateArgs ;
generate?;
License
GPL-3.0-only