#[non_exhaustive]pub struct ServerAndClientVerification {
pub client_certificate: String,
pub client_key: String,
pub ca_certificate: String,
pub server_certificate_hostname: String,
/* private fields */
}
Expand description
Message represents the option where Datastream will enforce the encryption and authenticate the server identity as well as the client identity. ca_certificate, client_certificate and client_key must be set if user selects this option.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_certificate: String
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream’s identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
client_key: String
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client’s identity, i.e. identity of the Datastream.
ca_certificate: String
Required. Input only. PEM-encoded server root CA certificate.
server_certificate_hostname: String
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
Implementations§
Source§impl ServerAndClientVerification
impl ServerAndClientVerification
pub fn new() -> Self
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Sourcepub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of ca_certificate.
Sourcepub fn set_server_certificate_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_server_certificate_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of server_certificate_hostname.
Trait Implementations§
Source§impl Clone for ServerAndClientVerification
impl Clone for ServerAndClientVerification
Source§fn clone(&self) -> ServerAndClientVerification
fn clone(&self) -> ServerAndClientVerification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more