pub struct Args {
pub cert: Vec<PathBuf>,
pub key: Vec<PathBuf>,
pub root: Vec<PathBuf>,
pub disable_verify: bool,
pub self_sign: Vec<String>,
}
Fields§
§cert: Vec<PathBuf>
Use the certificates at this path, encoded as PEM.
You can use this option multiple times for multiple certificates. The first match for the provided SNI will be used, otherwise the last cert will be used. You also need to provide the private key multiple times via `key``.
key: Vec<PathBuf>
Use the private key at this path, encoded as PEM.
There must be a key for every certificate provided via cert
.
root: Vec<PathBuf>
Use the TLS root at this path, encoded as PEM.
This value can be provided multiple times for multiple roots. If this is empty, system roots will be used instead
disable_verify: bool
Danger: Disable TLS certificate verification.
Fine for local development and between relays, but should be used in caution in production.
self_sign: Vec<String>
Generate a self-signed certificate for the provided hostnames (comma separated).
This is useful for local development and testing.
This can be combined with the /fingerprint
endpoint for clients to fetch the fingerprint.
Implementations§
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.