use std::path::PathBuf; fn main() { let server_cert = PathBuf::from("../../certs/ca.crt"); if !server_cert.exists() { panic!("CA certificate doesn't exist. Create it first with scripts/gen_certs.sh"); } }