Generate Root CA

This commit is contained in:
2024-06-27 18:55:09 +02:00
commit e0801661eb
9 changed files with 620 additions and 0 deletions

View File

@ -0,0 +1,10 @@
use std::path::Path;
/// Create directory if missing
pub fn create_directory_if_missing<P: AsRef<Path>>(path: P) -> anyhow::Result<()> {
let path = path.as_ref();
if !path.exists() {
std::fs::create_dir_all(path)?;
}
Ok(())
}

View File

@ -0,0 +1 @@
pub mod files_utils;