//! Helper functions for reading and handling TLS certificates.
use Path;
use ;
use crateError;
/// Load a daemon's certificate from a given path.
///
/// This certificate needs to be provided when connecting via
/// [ConnectionSettings::TlsTcpSocket](crate::network::socket::ConnectionSettings::TlsTcpSocket)
///
/// If the pem file contains multiple certificates, the first one is picked.