uptrakit-openapi-client 0.0.3

Typed HTTP client for the Uptrakit web API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Result;
use crate::UptrakitClient;

impl UptrakitClient {
    /// Download the CA certificate in PEM format.
    ///
    /// This endpoint does not require authentication.
    pub async fn ca_cert(&self) -> Result<String> {
        self.get_text_unauth(crate::paths::pki::CA_CERT).await
    }

    /// Download the CA certificate revocation list in PEM format.
    ///
    /// This endpoint does not require authentication.
    pub async fn ca_crl(&self) -> Result<String> {
        self.get_text_unauth(crate::paths::pki::CA_CRL).await
    }
}