# Datastream V1 API - Class Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #ca_certificate

    def ca_certificate() -> ::String

**Returns**

- (::String) --- Required. Input only. PEM-encoded server root CA certificate.

### #ca_certificate=

    def ca_certificate=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Input only. PEM-encoded server root CA certificate.
**Returns**

- (::String) --- Required. Input only. PEM-encoded server root CA certificate.

### #client_certificate

    def client_certificate() -> ::String

**Returns**

- (::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_certificate=

    def client_certificate=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def client_key() -> ::String

**Returns**

- (::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.

### #client_key=

    def client_key=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #server_certificate_hostname

    def server_certificate_hostname() -> ::String

**Returns**

- (::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.

### #server_certificate_hostname=

    def server_certificate_hostname=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.