3.27.0 (latest) 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class Certificate : IMessage<Certificate>, IEquatable<Certificate>, IDeepCloneable<Certificate>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class Certificate.

A \[Certificate\]\[google.cloud.kms.v1.Certificate\] represents an X.509
certificate used to authenticate HTTPS connections to EKM replicas.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Certificate

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Certificate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Certificate), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Certificate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Certificate), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Certificate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Certificate), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Kms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)

## Assembly

Google.Cloud.Kms.V1.dll

## Constructors

### Certificate()

    public Certificate()

### Certificate(Certificate)

    public Certificate(Certificate other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Certificate` |

## Properties

### Issuer

    public string Issuer { get; set; }

Output only. The issuer distinguished name in RFC 2253 format. Only present
if \[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### NotAfterTime

    public Timestamp NotAfterTime { get; set; }

Output only. The certificate is not valid after this time. Only present if
\[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### NotBeforeTime

    public Timestamp NotBeforeTime { get; set; }

Output only. The certificate is not valid before this time. Only present if
\[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Parsed

    public bool Parsed { get; set; }

Output only. True if the certificate was parsed successfully.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### RawDer

    public ByteString RawDer { get; set; }

Required. The raw certificate bytes in DER format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### SerialNumber

    public string SerialNumber { get; set; }

Output only. The certificate serial number as a hex string. Only present if
\[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Sha256Fingerprint

    public string Sha256Fingerprint { get; set; }

Output only. The SHA-256 certificate fingerprint as a hex string. Only
present if \[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Subject

    public string Subject { get; set; }

Output only. The subject distinguished name in RFC 2253 format. Only
present if \[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SubjectAlternativeDnsNames

    public RepeatedField<string> SubjectAlternativeDnsNames { get; }

Output only. The subject Alternative DNS names. Only present if
\[parsed\]\[google.cloud.kms.v1.Certificate.parsed\] is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |