Reference documentation and code samples for the Google Certificate Authority Service V1 Client class PublishingOptions.
Options relating to the publication of each
CertificateAuthority's
CA certificate and CRLs and their inclusion as extensions in issued
Certificates. The options
set here apply to certificates issued by any
CertificateAuthority
in the CaPool.
Generated from protobuf message google.cloud.security.privateca.v1.CaPool.PublishingOptions
Optional. When true, publishes each CertificateAuthority's CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued Certificates. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
↳ publish_crl
bool
Optional. When true, publishes each CertificateAuthority's CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued Certificates. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
↳ encoding_format
int
Optional. Specifies the encoding format of each CertificateAuthority resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
getPublishCaCert
Optional. When true, publishes each
CertificateAuthority's
CA certificate and includes its URL in the "Authority Information Access"
X.509 extension in all issued
Certificates. If this
is false, the CA certificate will not be published and the corresponding
X.509 extension will not be written in issued certificates.
Returns
Type
Description
bool
setPublishCaCert
Optional. When true, publishes each
CertificateAuthority's
CA certificate and includes its URL in the "Authority Information Access"
X.509 extension in all issued
Certificates. If this
is false, the CA certificate will not be published and the corresponding
X.509 extension will not be written in issued certificates.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getPublishCrl
Optional. When true, publishes each
CertificateAuthority's
CRL and includes its URL in the "CRL Distribution Points" X.509 extension
in all issued
Certificates. If this
is false, CRLs will not be published and the corresponding X.509
extension will not be written in issued certificates. CRLs will expire 7
days from their creation. However, we will rebuild daily. CRLs are also
rebuilt shortly after a certificate is revoked.
Returns
Type
Description
bool
setPublishCrl
Optional. When true, publishes each
CertificateAuthority's
CRL and includes its URL in the "CRL Distribution Points" X.509 extension
in all issued
Certificates. If this
is false, CRLs will not be published and the corresponding X.509
extension will not be written in issued certificates. CRLs will expire 7
days from their creation. However, we will rebuild daily. CRLs are also
rebuilt shortly after a certificate is revoked.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getEncodingFormat
Optional. Specifies the encoding format of each
CertificateAuthority
resource's CA certificate and CRLs. If this is omitted, CA certificates
and CRLs will be published in PEM.
Returns
Type
Description
int
setEncodingFormat
Optional. Specifies the encoding format of each
CertificateAuthority
resource's CA certificate and CRLs. If this is omitted, CA certificates
and CRLs will be published in PEM.
[[["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 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class PublishingOptions (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.PublishingOptions)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.CaPool.PublishingOptions)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.CaPool.PublishingOptions)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.CaPool.PublishingOptions)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.CaPool.PublishingOptions)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.CaPool.PublishingOptions)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.CaPool.PublishingOptions)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.CaPool.PublishingOptions)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.CaPool.PublishingOptions)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.CaPool.PublishingOptions) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class PublishingOptions.\n\nOptions relating to the publication of each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)'s\nCA certificate and CRLs and their inclusion as extensions in issued\n[Certificates](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). The options\nset here apply to certificates issued by any\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nin the [CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).\n\nGenerated from protobuf message `google.cloud.security.privateca.v1.CaPool.PublishingOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1 \\\\ CaPool\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPublishCaCert\n\nOptional. When true, publishes each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)'s\nCA certificate and includes its URL in the \"Authority Information Access\"\nX.509 extension in all issued\n[Certificates](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). If this\nis false, the CA certificate will not be published and the corresponding\nX.509 extension will not be written in issued certificates.\n\n### setPublishCaCert\n\nOptional. When true, publishes each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)'s\nCA certificate and includes its URL in the \"Authority Information Access\"\nX.509 extension in all issued\n[Certificates](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). If this\nis false, the CA certificate will not be published and the corresponding\nX.509 extension will not be written in issued certificates.\n\n### getPublishCrl\n\nOptional. When true, publishes each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)'s\nCRL and includes its URL in the \"CRL Distribution Points\" X.509 extension\nin all issued\n[Certificates](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). If this\nis false, CRLs will not be published and the corresponding X.509\nextension will not be written in issued certificates. CRLs will expire 7\ndays from their creation. However, we will rebuild daily. CRLs are also\nrebuilt shortly after a certificate is revoked.\n\n### setPublishCrl\n\nOptional. When true, publishes each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)'s\nCRL and includes its URL in the \"CRL Distribution Points\" X.509 extension\nin all issued\n[Certificates](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). If this\nis false, CRLs will not be published and the corresponding X.509\nextension will not be written in issued certificates. CRLs will expire 7\ndays from their creation. However, we will rebuild daily. CRLs are also\nrebuilt shortly after a certificate is revoked.\n\n### getEncodingFormat\n\nOptional. Specifies the encoding format of each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nresource's CA certificate and CRLs. If this is omitted, CA certificates\nand CRLs will be published in PEM.\n\n### setEncodingFormat\n\nOptional. Specifies the encoding format of each\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nresource's CA certificate and CRLs. If this is omitted, CA certificates\nand CRLs will be published in PEM."]]