local-ssl 0.1.0

Local HTTPS certificate generation for development — pair with local-dns
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use colored::Colorize;

fn main() {
    let args: Vec<String> = std::env::args().collect();
    match local_ssl::run(&args) {
        Ok(msg) => {
            if !msg.is_empty() {
                println!("{msg}");
            }
        }
        Err(e) => eprintln!("{}", format!("Error: {e}").red().bold()),
    }
}