Skip to main content

WildcardCertIssuer

Trait WildcardCertIssuer 

Source
pub trait WildcardCertIssuer: Send + Sync {
    // Required method
    fn issue<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        zone: &'life1 AccountZone,
        cfg: &'life2 AccountZoneConfig,
        dns: &'life3 dyn DnsProvider,
    ) -> Pin<Box<dyn Future<Output = Result<IssuedCert, IssuanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

The interface a deployment’s DNS-01 wildcard issuer implements.

Implementations live outside this crate (metal repo / product layer): they drive an ACME directory against *.<apex>, publish the _acme-challenge TXT record via the supplied DnsProvider (so the same zone-scoped credential plumbing is reused), poll the authorization to completion, finalize with a CSR, and return the resulting IssuedCert.

NullWildcardCertIssuer is the in-crate fail-closed default.

Required Methods§

Source

fn issue<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, zone: &'life1 AccountZone, cfg: &'life2 AccountZoneConfig, dns: &'life3 dyn DnsProvider, ) -> Pin<Box<dyn Future<Output = Result<IssuedCert, IssuanceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Issue (or renew) the wildcard certificate for zone. dns is the deployment’s DNS provider; cfg carries the ACME directory, contact, and zone-scoped credential.

Implementors§