Load certificates from a file (supports both PEM and DER formats) Returns statistics about loaded certificates
(&mut self, path: &str)
| 639 | /// |
| 640 | /// Returns statistics about loaded certificates |
| 641 | pub fn load_from_file(&mut self, path: &str) -> Result<CertStats, std::io::Error> { |
| 642 | let contents = std::fs::read(path)?; |
| 643 | self.load_from_bytes(&contents) |
| 644 | } |
| 645 | |
| 646 | /// Load certificates from a directory |
| 647 | /// |
no test coverage detected