[][src]Function caramel_client::network::fetch_root_cert

pub fn fetch_root_cert(server: &str) -> Result<Vec<u8>, CcError>

Fetch the CA certificate from the server.

Will fail if the server is not valid against our default CA-store.

Errors

  • CcError::Network for most HTTP status-codes that we do not know what to do with.
  • CcError::LibCurl for curl internal errors. (DNS, timeout, etc.)
  • CcError::CaNotFound this server has no CA file and it is probably not running caramel.