pub enum CertConfig<EC: Debug, EA: Debug = EC> {
LetsEncrypt {
config: AcmeConfig<EC, EA>,
},
Manual {
private_key: PrivateKeyDer<'static>,
certs: Vec<CertificateDer<'static>>,
},
}
Available on crate feature
iroh-relay
only.Expand description
TLS certificate configuration.
Variants§
LetsEncrypt
Use Let’s Encrypt.
Fields
§
config: AcmeConfig<EC, EA>
Configuration for Let’s Encrypt certificates.
Manual
Use a static TLS key and certificate chain.
Fields
§
private_key: PrivateKeyDer<'static>
The TLS private key.
§
certs: Vec<CertificateDer<'static>>
The TLS certificate chain.
Trait Implementations§
Auto Trait Implementations§
impl<EC, EA> Freeze for CertConfig<EC, EA>
impl<EC, EA = EC> !RefUnwindSafe for CertConfig<EC, EA>
impl<EC, EA> Send for CertConfig<EC, EA>
impl<EC, EA> Sync for CertConfig<EC, EA>
impl<EC, EA> Unpin for CertConfig<EC, EA>
impl<EC, EA = EC> !UnwindSafe for CertConfig<EC, EA>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more