[−][src]Function caramel_client::network::post_csr
pub fn post_csr(
server: &str,
ca_cert: &Path,
csr_data: &[u8]
) -> Result<CertState, CcError>
Assuming that a certificate file does not exist on the server
, post csr_data
to a name
calculated by the contents of csr_data
.
Errors
CcError::LibCurl
for various curl internal errors (DNS, timeout, typoed hostname, etc).CcError::Network
for various status codes from the CA server.