(path: &Path)
| 618 | } |
| 619 | |
| 620 | fn read_pem(path: &Path) -> Result<String> { |
| 621 | std::fs::read_to_string(path) |
| 622 | .into_diagnostic() |
| 623 | .wrap_err_with(|| format!("failed to read {}", path.display())) |
| 624 | } |
| 625 | |
| 626 | fn write_local_bundle(dir: &Path, bundle: &PkiBundle, paths: &LocalPaths) -> Result<()> { |
| 627 | // Stage to a sibling tmp dir so individual renames into the final layout |