Skip to main content

install_cert

Function install_cert 

Source
pub fn install_cert(cert_path: &Path) -> Result<()>
Expand description

Install the CA certificate into the system trust store.

On macOS, installs into the current user’s login keychain (no sudo required; the OS shows a GUI authorization prompt to confirm).

On Linux, copies to the distro-specific CA directory and runs the appropriate update command (requires sudo / write access).