MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / write_pem_private_key

Function write_pem_private_key

nodedb/src/control/cluster/tls.rs:423–427  ·  view source on GitHub ↗
(path: &Path, der: &[u8])

Source from the content-addressed store, hash-verified

421}
422
423fn write_pem_private_key(path: &Path, der: &[u8]) -> crate::Result<()> {
424 super::pem_io::write_pem_private_key(path, der).map_err(|e| crate::Error::Config {
425 detail: format!("write {}: {e}", path.display()),
426 })
427}
428
429/// Refuse to start if a secret file is world- or group-readable.
430/// Hard-fail is the only acceptable behaviour here — a warn+continue

Callers 2

bootstrap_credentialsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected