@@ -35,7 +35,7 @@ pub struct Cli {
3535 pub tls_key_path : Option < PathBuf > ,
3636
3737 /// The location of other certificates to accept
38- pub other_cert_path : Option < PathBuf > ,
38+ pub trusted_ca_certs_path : Option < PathBuf > ,
3939
4040 /// The address on which the http server will listen.
4141 pub address : String ,
@@ -125,7 +125,7 @@ impl Cli {
125125 // identifiers for arguments
126126 pub const TLS_CERT : & ' static str = "tls-cert-path" ;
127127 pub const TLS_KEY : & ' static str = "tls-key-path" ;
128- pub const OTHER_CERT : & ' static str = "other-cert -path" ;
128+ pub const TRUSTED_CA_CERTS_PATH : & ' static str = "trusted-ca-certs -path" ;
129129 pub const ADDRESS : & ' static str = "address" ;
130130 pub const DOMAIN_URI : & ' static str = "origin" ;
131131 pub const STAGING : & ' static str = "local-staging-path" ;
@@ -229,12 +229,12 @@ impl Cli {
229229 . help ( "Local path on this device where private key file is located. Required to enable TLS" ) ,
230230 )
231231 . arg (
232- Arg :: new ( Self :: OTHER_CERT )
233- . long ( Self :: OTHER_CERT )
234- . env ( "P_OTHER_CERT_PATH " )
232+ Arg :: new ( Self :: TRUSTED_CA_CERTS_PATH )
233+ . long ( Self :: TRUSTED_CA_CERTS_PATH )
234+ . env ( "P_TRUSTED_CA_CERTS_DIR " )
235235 . value_name ( "DIR" )
236236 . value_parser ( validation:: canonicalize_path)
237- . help ( "Local path on this device where other certificate files are located." )
237+ . help ( "Local path on this device where all trusted certificates are located." )
238238 )
239239 . arg (
240240 Arg :: new ( Self :: ADDRESS )
@@ -521,7 +521,7 @@ impl FromArgMatches for Cli {
521521 self . query_cache_path = m. get_one :: < PathBuf > ( Self :: QUERY_CACHE ) . cloned ( ) ;
522522 self . tls_cert_path = m. get_one :: < PathBuf > ( Self :: TLS_CERT ) . cloned ( ) ;
523523 self . tls_key_path = m. get_one :: < PathBuf > ( Self :: TLS_KEY ) . cloned ( ) ;
524- self . other_cert_path = m. get_one :: < PathBuf > ( Self :: OTHER_CERT ) . cloned ( ) ;
524+ self . trusted_ca_certs_path = m. get_one :: < PathBuf > ( Self :: TRUSTED_CA_CERTS_PATH ) . cloned ( ) ;
525525 self . domain_address = m. get_one :: < Url > ( Self :: DOMAIN_URI ) . cloned ( ) ;
526526
527527 self . address = m
0 commit comments