MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / renew_cert

Method renew_cert

certbot/src/acme_client.rs:211–219  ·  view source on GitHub ↗

Renew given certificate

(&self, cert_pem: &str, key_pem: &str)

Source from the content-addressed store, hash-verified

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(

Callers 2

renew_cert_if_neededMethod · 0.45
auto_renewMethod · 0.45

Calls 2

Tested by

no test coverage detected