(path: &Path, der: &[u8])
| 421 | } |
| 422 | |
| 423 | fn 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 |
no outgoing calls
no test coverage detected