pub struct TlsOptions {
pub ca_file: Option<PathBuf>,
pub cert_file: Option<PathBuf>,
pub key_file: Option<PathBuf>,
pub client_auth: ClientAuth,
pub verify_host: bool,
}Expand description
The TLS settings of an ORB (docs/ssliop.md). Files are PEM.
A client connects with TLS to the objects whose IORs offer it when
ca_file is set; a server listens on the
TLS endpoints.
Fields§
§ca_file: Option<PathBuf>The CA certificates trusted for the peer’s certificate
(-ORBsslCAFile). A client needs it to use TLS, a server to check
client certificates.
cert_file: Option<PathBuf>This ORB’s certificate, followed by its intermediate CAs
(-ORBsslCertFile). Without it the certificates are read from
key_file, which may hold both.
key_file: Option<PathBuf>This ORB’s private key, unencrypted (-ORBsslKeyFile). A server
needs it; a client sends its certificate when it has one.
client_auth: ClientAuthWhether a server asks clients for a certificate
(-ORBsslVerifyClient none|optional|required).
verify_host: boolWhether a client checks that the server’s certificate is for the
host it connects to, as named in the IOR (-ORBsslVerifyHost 0|1).
The chain is checked either way.