uptrakit_openapi_client/pki.rs
1use crate::Result;
2use crate::UptrakitClient;
3
4impl UptrakitClient {
5 /// Download the CA certificate in PEM format.
6 ///
7 /// This endpoint does not require authentication.
8 pub async fn ca_cert(&self) -> Result<String> {
9 self.get_text_unauth(crate::paths::pki::CA_CERT).await
10 }
11
12 /// Download the CA certificate revocation list in PEM format.
13 ///
14 /// This endpoint does not require authentication.
15 pub async fn ca_crl(&self) -> Result<String> {
16 self.get_text_unauth(crate::paths::pki::CA_CRL).await
17 }
18}