(&self)
| 46 | } |
| 47 | |
| 48 | pub async fn get_root_ca(&self) -> Result<String> { |
| 49 | match self { |
| 50 | CertRequestClient::Local { ca } => Ok(ca.pem_cert.clone()), |
| 51 | CertRequestClient::Kms { client, .. } => Ok(client.get_meta().await?.ca_cert), |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | pub async fn create( |
| 56 | keys: &AppKeys, |