pub enum Tls {
None,
WebPki,
PrivateCa {
trust_anchors_pem: String,
},
}
Expand description
How a client trusts the server behind the four services.
No TLS: a development server on loopback. A client refuses this from a
document it fetched over https://.
A publicly trusted certificate presenting server_name: the hosted
deployment, and any self-hosted one with a public certificate.
A private trust root, for a self-hosted deployment whose services
present a certificate the public web PKI does not know. The PEM holds
the trust anchors: the private CA’s certificate, or the server’s own
certificate when it is self-signed. A leaf issued by a CA does not
verify on its own; the CA is what goes here. The document is fetched
over web-PKI https://, so the anchors arrive authenticated, and the
certificate the services present must still name server_name.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Deserialize this value from the given Serde deserializer.
Read more§The wire name of the mode, for logs: none, web-pki, private-ca.
Formats the value using the given formatter.
Read more
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.