pub async fn certs(
fix_dirs: bool,
path: impl Into<PathBuf>,
temp_dir: impl Into<PathBuf>,
kind: GenerateCertsSubcommand,
) -> Result<(), Error>
Expand description
Handles generating root & server certificates for the current domain.
§Arguments
fix_dirs
: if true, will generate missing directories instead of complaining.path
: The path of the directory to write the new certificate files to.temp_dir
: The path of the directory where we store the temporary scripts.kind
: The kind of certificate(s) to generate.
§Returns
Nothing, but does write several new files to the given directory and updates the user on stdout on success.
§Errors
This function may error if I/O errors occur while downloading the auxillary scripts or while writing the files.