MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / read_pem

Function read_pem

crates/openshell-server/src/certgen.rs:620–624  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

618}
619
620fn 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
626fn write_local_bundle(dir: &Path, bundle: &PkiBundle, paths: &LocalPaths) -> Result<()> {
627 // Stage to a sibling tmp dir so individual renames into the final layout

Callers 1

read_local_bundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected