# Cloud Key Management Service (KMS) V1 API - Class Google::Cloud::Kms::V1::Certificate (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.2 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.2 1.2.1 1.1.0 1.0.2 0.27.0 0.26.0 0.25.1 0.24.3 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API class Google::Cloud::Kms::V1::Certificate.

A [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate "Google::Cloud::Kms::V1::Certificate (class)") represents an X.509
certificate used to authenticate HTTPS connections to EKM replicas.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #issuer

    def issuer() -> ::String

**Returns**

- (::String) --- Output only. The issuer distinguished name in RFC 2253 format. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #not_after_time

    def not_after_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The certificate is not valid after this time. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #not_before_time

    def not_before_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The certificate is not valid before this time. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #parsed

    def parsed() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. True if the certificate was parsed successfully.

### #raw_der

    def raw_der() -> ::String

**Returns**

- (::String) --- Required. The raw certificate bytes in DER format.

### #raw_der=

    def raw_der=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The raw certificate bytes in DER format.
**Returns**

- (::String) --- Required. The raw certificate bytes in DER format.

### #serial_number

    def serial_number() -> ::String

**Returns**

- (::String) --- Output only. The certificate serial number as a hex string. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #sha256_fingerprint

    def sha256_fingerprint() -> ::String

**Returns**

- (::String) --- Output only. The SHA-256 certificate fingerprint as a hex string. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #subject

    def subject() -> ::String

**Returns**

- (::String) --- Output only. The subject distinguished name in RFC 2253 format. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.

### #subject_alternative_dns_names

    def subject_alternative_dns_names() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. The subject Alternative DNS names. Only present if [parsed](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate#Google__Cloud__Kms__V1__Certificate_parsed_instance_ "Google::Cloud::Kms::V1::Certificate#parsed (method)") is true.