Google Certificate Authority Service V1 Client - Class CertificateTemplate (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Certificate Authority Service V1 Client class CertificateTemplate.
A
CertificateTemplate
refers to a managed template for certificate issuance.
Generated from protobuf message google.cloud.security.privateca.v1.CertificateTemplate
Namespace
Google \ Cloud \ Security \ PrivateCA \ V1
Methods
__construct
Constructor.
Parameter
Name
Description
data
mixed
getName
Identifier. The resource name for this
CertificateTemplate
in the format projects/*/locations/*/certificateTemplates/*.
Returns
Type
Description
string
setName
Identifier. The resource name for this
CertificateTemplate
in the format projects/*/locations/*/certificateTemplates/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMaximumLifetime
Optional. The maximum lifetime allowed for issued
Certificates that use
this template. If the issuing
CaPool resource's
IssuancePolicy
specifies a
maximum_lifetime
the minimum of the two durations will be the maximum lifetime for issued
Certificates. Note that
if the issuing
CertificateAuthority
expires before a
Certificate's requested
maximum_lifetime, the effective lifetime will be explicitly truncated
to match it.
Optional. The maximum lifetime allowed for issued
Certificates that use
this template. If the issuing
CaPool resource's
IssuancePolicy
specifies a
maximum_lifetime
the minimum of the two durations will be the maximum lifetime for issued
Certificates. Note that
if the issuing
CertificateAuthority
expires before a
Certificate's requested
maximum_lifetime, the effective lifetime will be explicitly truncated
to match it.
Optional. A set of X.509 values that will be applied to all issued
certificates that use this template. If the certificate request includes
conflicting values for the same properties, they will be overwritten by the
values defined here. If the issuing
CaPool's
IssuancePolicy
defines conflicting
baseline_values
for the same properties, the certificate issuance request will fail.
Optional. A set of X.509 values that will be applied to all issued
certificates that use this template. If the certificate request includes
conflicting values for the same properties, they will be overwritten by the
values defined here. If the issuing
CaPool's
IssuancePolicy
defines conflicting
baseline_values
for the same properties, the certificate issuance request will fail.
Optional. Describes constraints on identities that may be appear in
Certificates issued using
this template. If this is omitted, then this template will not add
restrictions on a certificate's identity.
Optional. Describes constraints on identities that may be appear in
Certificates issued using
this template. If this is omitted, then this template will not add
restrictions on a certificate's identity.
If a certificate request sets extensions that don't appear in the
passthrough_extensions,
those extensions will be dropped. If the issuing
CaPool's
IssuancePolicy
defines
baseline_values
that don't appear here, the certificate issuance request will fail. If this
is omitted, then this template will not add restrictions on a certificate's
X.509 extensions. These constraints do not apply to X.509 extensions set in
this
CertificateTemplate's
predefined_values.
If a certificate request sets extensions that don't appear in the
passthrough_extensions,
those extensions will be dropped. If the issuing
CaPool's
IssuancePolicy
defines
baseline_values
that don't appear here, the certificate issuance request will fail. If this
is omitted, then this template will not add restrictions on a certificate's
X.509 extensions. These constraints do not apply to X.509 extensions set in
this
CertificateTemplate's
predefined_values.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]