Add S3 OCSP status publishing and standalone Rust Axum responder
This commit is contained in:
@@ -342,6 +342,14 @@ pub async fn ca_info(vault_id: &str, cert_id: &str) -> Result<serde_json::Value,
|
||||
check(response).await
|
||||
}
|
||||
|
||||
pub async fn ocsp_status(vault_id: &str, cert_id: &str) -> Result<serde_json::Value, String> {
|
||||
let response = Request::get(&format!("/api/vaults/{vault_id}/certificates/{cert_id}/ocsp-status"))
|
||||
.send()
|
||||
.await
|
||||
.map_err(|e| e.to_string())?;
|
||||
check(response).await
|
||||
}
|
||||
|
||||
pub async fn update_ca(vault_id: &str, cert_id: &str, payload: &serde_json::Value) -> Result<serde_json::Value, String> {
|
||||
let response = send("PATCH", &format!("/api/vaults/{vault_id}/certificates/{cert_id}/ca"), Some(payload)).await?;
|
||||
check(response).await
|
||||
|
||||
Reference in New Issue
Block a user