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].
Implements
IMessageCertificate, IEquatableCertificate, IDeepCloneableCertificate, IBufferMessage, IMessageNamespace
Google.Cloud.Security.PrivateCA.V1Assembly
Google.Cloud.Security.PrivateCA.V1.dll
Constructors
Certificate()
public Certificate()
Certificate(Certificate)
public Certificate(Certificate other)
Parameter | |
---|---|
Name | Description |
other | Certificate |
Properties
CertificateConfigCase
public Certificate.CertificateConfigOneofCase CertificateConfigCase { get; }
Property Value | |
---|---|
Type | Description |
CertificateCertificateConfigOneofCase |
CertificateDescription
public CertificateDescription CertificateDescription { get; set; }
Output only. A structured description of the issued X.509 certificate.
Property Value | |
---|---|
Type | Description |
CertificateDescription |
CertificateName
public CertificateName CertificateName { get; set; }
CertificateName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
CertificateTemplateAsCertificateTemplateName
public CertificateTemplateName CertificateTemplateAsCertificateTemplateName { get; set; }
CertificateTemplateName-typed view over the CertificateTemplate resource name property.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Timestamp |
HasPemCsr
public bool HasPemCsr { get; }
Gets whether the "pem_csr" field is set
Property Value | |
---|---|
Type | Description |
bool |
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 | |
---|---|
Type | Description |
string |
IssuerCertificateAuthorityAsCertificateAuthorityName
public CertificateAuthorityName IssuerCertificateAuthorityAsCertificateAuthorityName { get; set; }
CertificateAuthorityName-typed view over the IssuerCertificateAuthority resource name property.
Property Value | |
---|---|
Type | Description |
CertificateAuthorityName |
Labels
public MapField<string, string> Labels { get; }
Optional. Labels with user-defined metadata.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
PemCertificate
public string PemCertificate { get; set; }
Output only. The pem-encoded, signed X.509 certificate.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedFieldstring |
PemCsr
public string PemCsr { get; set; }
Immutable. A pem-encoded X.509 certificate signing request (CSR).
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CertificateTypesRevocationDetails |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Timestamp |