Certificate Authority v1 API - Class Certificate (3.1.0)

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

Reference documentation and code samples for the Certificate Authority v1 API class Certificate.

A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Inheritance

Object > Certificate

Namespace

Google.Cloud.Security.PrivateCA.V1

Assembly

Google.Cloud.Security.PrivateCA.V1.dll

Constructors

Certificate()

public Certificate()

Certificate(Certificate)

public Certificate(Certificate other)
Parameter
NameDescription
otherCertificate

Properties

CertificateConfigCase

public Certificate.CertificateConfigOneofCase CertificateConfigCase { get; }
Property Value
TypeDescription
Certificate.CertificateConfigOneofCase

CertificateDescription

public CertificateDescription CertificateDescription { get; set; }

Output only. A structured description of the issued X.509 certificate.

Property Value
TypeDescription
CertificateDescription

CertificateName

public CertificateName CertificateName { get; set; }

CertificateName-typed view over the Name resource name property.

Property Value
TypeDescription
CertificateName

CertificateTemplate

public string CertificateTemplate { get; set; }

Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format projects/*/locations/*/certificateTemplates/*. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].

Property Value
TypeDescription
String

CertificateTemplateAsCertificateTemplateName

public CertificateTemplateName CertificateTemplateAsCertificateTemplateName { get; set; }

CertificateTemplateName-typed view over the CertificateTemplate resource name property.

Property Value
TypeDescription
CertificateTemplateName

Config

public CertificateConfig Config { get; set; }

Immutable. A description of the certificate and key that does not require X.509 or ASN.1.

Property Value
TypeDescription
CertificateConfig

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.

Property Value
TypeDescription
Timestamp

IssuerCertificateAuthority

public string IssuerCertificateAuthority { get; set; }

Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

Property Value
TypeDescription
String

IssuerCertificateAuthorityAsCertificateAuthorityName

public CertificateAuthorityName IssuerCertificateAuthorityAsCertificateAuthorityName { get; set; }

CertificateAuthorityName-typed view over the IssuerCertificateAuthority resource name property.

Property Value
TypeDescription
CertificateAuthorityName

Labels

public MapField<string, string> Labels { get; }

Optional. Labels with user-defined metadata.

Property Value
TypeDescription
MapField<String, String>

Lifetime

public Duration Lifetime { get; set; }

Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.

Property Value
TypeDescription
Duration

Name

public string Name { get; set; }

Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format projects/*/locations/*/caPools/*/certificates/*.

Property Value
TypeDescription
String

PemCertificate

public string PemCertificate { get; set; }

Output only. The pem-encoded, signed X.509 certificate.

Property Value
TypeDescription
String

PemCertificateChain

public RepeatedField<string> PemCertificateChain { get; }

Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

Property Value
TypeDescription
RepeatedField<String>

PemCsr

public string PemCsr { get; set; }

Immutable. A pem-encoded X.509 certificate signing request (CSR).

Property Value
TypeDescription
String

RevocationDetails

public Certificate.Types.RevocationDetails RevocationDetails { get; set; }

Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.

Property Value
TypeDescription
Certificate.Types.RevocationDetails

SubjectMode

public SubjectRequestMode SubjectMode { get; set; }

Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the DEFAULT subject mode will be used.

Property Value
TypeDescription
SubjectRequestMode

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.

Property Value
TypeDescription
Timestamp