write_atomic

Function write_atomic 

Source
fn write_atomic(path: &Path, contents: &[u8]) -> Result<()>
Expand description

Tempfile + rename so a crash mid-write doesn’t leave a half-written cert.