Skip to main content

write_private_pem

Function write_private_pem 

pub fn write_private_pem(path: &Path, pem: &str) -> Result<()>
Expand description

Write a private-key PEM file, restricting permissions to 0600 on Unix before the bytes are written (no create-then-chmod world-readable window).