Class: Google::Apis::CesV1::TlsConfigCaCert
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::TlsConfigCaCert
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
The CA certificate.
Instance Attribute Summary collapse
-
#cert ⇒ String
Required.
-
#display_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TlsConfigCaCert
constructor
A new instance of TlsConfigCaCert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TlsConfigCaCert
Returns a new instance of TlsConfigCaCert.
6844 6845 6846 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6844 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cert ⇒ String
Required. The allowed custom CA certificates (in DER format) for HTTPS
verification. This overrides the default SSL trust store. If this is empty or
unspecified, CES will use Google's default trust store to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt name"
. For instance a certificate can be self-signed using the following command:
` openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \
-out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.
com'")
Corresponds to the JSON propertycert`
NOTE: Values are automatically base64 encoded/decoded in the client library.
6836 6837 6838 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6836 def cert @cert end |
#display_name ⇒ String
Required. The name of the allowed custom CA certificates. This can be used to
disambiguate the custom CA certificates.
Corresponds to the JSON property displayName
6842 6843 6844 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6842 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6849 6850 6851 6852 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6849 def update!(**args) @cert = args[:cert] if args.key?(:cert) @display_name = args[:display_name] if args.key?(:display_name) end |