Renew given certificate
(&self, cert_pem: &str, key_pem: &str)
| 209 | |
| 210 | /// Renew given certificate |
| 211 | pub async fn renew_cert(&self, cert_pem: &str, key_pem: &str) -> Result<String> { |
| 212 | let domains = |
| 213 | extract_subject_alt_names(cert_pem).context("failed to extract subject alt names")?; |
| 214 | let cert = self |
| 215 | .request_new_certificate(key_pem, &domains) |
| 216 | .await |
| 217 | .context("failed to request new certificates")?; |
| 218 | Ok(cert) |
| 219 | } |
| 220 | |
| 221 | /// Auto renew given certificate |
| 222 | pub async fn auto_renew( |
no test coverage detected