1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="privateca_v1beta1.html">Certificate Authority API</a> . <a href="privateca_v1beta1.projects.html">projects</a> . <a href="privateca_v1beta1.projects.locations.html">locations</a> . <a href="privateca_v1beta1.projects.locations.certificateAuthorities.html">certificateAuthorities</a> . <a href="privateca_v1beta1.projects.locations.certificateAuthorities.certificates.html">certificates</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, certificateId=None, requestId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Create a new Certificate in a given Project, Location from a particular CertificateAuthority.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Returns a Certificate.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Lists Certificates.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Update a Certificate. Currently, the only field you can update is the labels field.</p> 95<p class="toc_element"> 96 <code><a href="#revoke">revoke(name, body=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Revoke a Certificate.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="create">create(parent, body=None, certificateId=None, requestId=None, x__xgafv=None)</code> 106 <pre>Create a new Certificate in a given Project, Location from a particular CertificateAuthority. 107 108Args: 109 parent: string, Required. The resource name of the location and CertificateAuthority associated with the Certificate, in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 110 body: object, The request body. 111 The object takes the form of: 112 113{ # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 114 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 115 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 116 "A String", 117 ], 118 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 119 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 120 }, 121 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 122 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 123 }, 124 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 125 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 126 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 127 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 128 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 129 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 130 42, 131 ], 132 }, 133 "value": "A String", # Required. The value of this X.509 extension. 134 }, 135 ], 136 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 137 "A String", 138 ], 139 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 140 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 141 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 142 }, 143 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 144 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 145 "certSign": True or False, # The key may be used to sign certificates. 146 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 147 "crlSign": True or False, # The key may be used sign certificate revocation lists. 148 "dataEncipherment": True or False, # The key may be used to encipher data. 149 "decipherOnly": True or False, # The key may be used to decipher only. 150 "digitalSignature": True or False, # The key may be used for digital signatures. 151 "encipherOnly": True or False, # The key may be used to encipher only. 152 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 153 "keyEncipherment": True or False, # The key may be used to encipher other keys. 154 }, 155 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 156 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 157 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 158 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 159 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 160 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 161 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 162 }, 163 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 164 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 165 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 166 42, 167 ], 168 }, 169 ], 170 }, 171 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 172 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 173 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 174 42, 175 ], 176 }, 177 ], 178 }, 179 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 180 "A String", 181 ], 182 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 183 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 184 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 185 }, 186 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 187 "commonName": "A String", # The "common name" of the distinguished name. 188 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 189 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 190 "notAfterTime": "A String", # The time at which the certificate expires. 191 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 192 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 193 "countryCode": "A String", # The country code of the subject. 194 "locality": "A String", # The locality or city of the subject. 195 "organization": "A String", # The organization of the subject. 196 "organizationalUnit": "A String", # The organizational_unit of the subject. 197 "postalCode": "A String", # The postal code of the subject. 198 "province": "A String", # The province, territory, or regional state of the subject. 199 "streetAddress": "A String", # The street address of the subject. 200 }, 201 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 202 "customSans": [ # Contains additional subject alternative name values. 203 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 204 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 205 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 206 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 207 42, 208 ], 209 }, 210 "value": "A String", # Required. The value of this X.509 extension. 211 }, 212 ], 213 "dnsNames": [ # Contains only valid, fully-qualified host names. 214 "A String", 215 ], 216 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 217 "A String", 218 ], 219 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 220 "A String", 221 ], 222 "uris": [ # Contains only valid RFC 3986 URIs. 223 "A String", 224 ], 225 }, 226 }, 227 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 228 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 229 }, 230 }, 231 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 232 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 233 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 234 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 235 }, 236 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 237 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 238 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 239 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 240 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 241 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 242 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 243 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 244 42, 245 ], 246 }, 247 "value": "A String", # Required. The value of this X.509 extension. 248 }, 249 ], 250 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 251 "A String", 252 ], 253 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 254 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 255 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 256 }, 257 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 258 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 259 "certSign": True or False, # The key may be used to sign certificates. 260 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 261 "crlSign": True or False, # The key may be used sign certificate revocation lists. 262 "dataEncipherment": True or False, # The key may be used to encipher data. 263 "decipherOnly": True or False, # The key may be used to decipher only. 264 "digitalSignature": True or False, # The key may be used for digital signatures. 265 "encipherOnly": True or False, # The key may be used to encipher only. 266 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 267 "keyEncipherment": True or False, # The key may be used to encipher other keys. 268 }, 269 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 270 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 271 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 272 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 273 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 274 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 275 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 276 }, 277 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 278 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 279 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 280 42, 281 ], 282 }, 283 ], 284 }, 285 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 286 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 287 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 288 42, 289 ], 290 }, 291 ], 292 }, 293 }, 294 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 295 "commonName": "A String", # Optional. The "common name" of the distinguished name. 296 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 297 "countryCode": "A String", # The country code of the subject. 298 "locality": "A String", # The locality or city of the subject. 299 "organization": "A String", # The organization of the subject. 300 "organizationalUnit": "A String", # The organizational_unit of the subject. 301 "postalCode": "A String", # The postal code of the subject. 302 "province": "A String", # The province, territory, or regional state of the subject. 303 "streetAddress": "A String", # The street address of the subject. 304 }, 305 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 306 "customSans": [ # Contains additional subject alternative name values. 307 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 308 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 309 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 310 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 311 42, 312 ], 313 }, 314 "value": "A String", # Required. The value of this X.509 extension. 315 }, 316 ], 317 "dnsNames": [ # Contains only valid, fully-qualified host names. 318 "A String", 319 ], 320 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 321 "A String", 322 ], 323 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 324 "A String", 325 ], 326 "uris": [ # Contains only valid RFC 3986 URIs. 327 "A String", 328 ], 329 }, 330 }, 331 }, 332 "createTime": "A String", # Output only. The time at which this Certificate was created. 333 "labels": { # Optional. Labels with user-defined metadata. 334 "a_key": "A String", 335 }, 336 "lifetime": "A String", # 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. 337 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 338 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 339 "pemCertificateChain": [ # 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. 340 "A String", 341 ], 342 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 343 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 344 "revocationState": "A String", # Indicates why a Certificate was revoked. 345 "revocationTime": "A String", # The time at which this Certificate was revoked. 346 }, 347 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 348} 349 350 certificateId: string, Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise. 351 requestId: string, Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 352 x__xgafv: string, V1 error format. 353 Allowed values 354 1 - v1 error format 355 2 - v2 error format 356 357Returns: 358 An object of the form: 359 360 { # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 361 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 362 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 363 "A String", 364 ], 365 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 366 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 367 }, 368 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 369 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 370 }, 371 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 372 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 373 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 374 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 375 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 376 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 377 42, 378 ], 379 }, 380 "value": "A String", # Required. The value of this X.509 extension. 381 }, 382 ], 383 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 384 "A String", 385 ], 386 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 387 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 388 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 389 }, 390 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 391 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 392 "certSign": True or False, # The key may be used to sign certificates. 393 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 394 "crlSign": True or False, # The key may be used sign certificate revocation lists. 395 "dataEncipherment": True or False, # The key may be used to encipher data. 396 "decipherOnly": True or False, # The key may be used to decipher only. 397 "digitalSignature": True or False, # The key may be used for digital signatures. 398 "encipherOnly": True or False, # The key may be used to encipher only. 399 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 400 "keyEncipherment": True or False, # The key may be used to encipher other keys. 401 }, 402 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 403 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 404 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 405 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 406 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 407 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 408 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 409 }, 410 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 411 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 412 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 413 42, 414 ], 415 }, 416 ], 417 }, 418 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 419 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 420 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 421 42, 422 ], 423 }, 424 ], 425 }, 426 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 427 "A String", 428 ], 429 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 430 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 431 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 432 }, 433 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 434 "commonName": "A String", # The "common name" of the distinguished name. 435 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 436 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 437 "notAfterTime": "A String", # The time at which the certificate expires. 438 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 439 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 440 "countryCode": "A String", # The country code of the subject. 441 "locality": "A String", # The locality or city of the subject. 442 "organization": "A String", # The organization of the subject. 443 "organizationalUnit": "A String", # The organizational_unit of the subject. 444 "postalCode": "A String", # The postal code of the subject. 445 "province": "A String", # The province, territory, or regional state of the subject. 446 "streetAddress": "A String", # The street address of the subject. 447 }, 448 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 449 "customSans": [ # Contains additional subject alternative name values. 450 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 451 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 452 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 453 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 454 42, 455 ], 456 }, 457 "value": "A String", # Required. The value of this X.509 extension. 458 }, 459 ], 460 "dnsNames": [ # Contains only valid, fully-qualified host names. 461 "A String", 462 ], 463 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 464 "A String", 465 ], 466 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 467 "A String", 468 ], 469 "uris": [ # Contains only valid RFC 3986 URIs. 470 "A String", 471 ], 472 }, 473 }, 474 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 475 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 476 }, 477 }, 478 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 479 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 480 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 481 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 482 }, 483 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 484 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 485 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 486 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 487 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 488 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 489 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 490 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 491 42, 492 ], 493 }, 494 "value": "A String", # Required. The value of this X.509 extension. 495 }, 496 ], 497 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 498 "A String", 499 ], 500 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 501 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 502 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 503 }, 504 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 505 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 506 "certSign": True or False, # The key may be used to sign certificates. 507 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 508 "crlSign": True or False, # The key may be used sign certificate revocation lists. 509 "dataEncipherment": True or False, # The key may be used to encipher data. 510 "decipherOnly": True or False, # The key may be used to decipher only. 511 "digitalSignature": True or False, # The key may be used for digital signatures. 512 "encipherOnly": True or False, # The key may be used to encipher only. 513 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 514 "keyEncipherment": True or False, # The key may be used to encipher other keys. 515 }, 516 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 517 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 518 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 519 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 520 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 521 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 522 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 523 }, 524 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 525 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 526 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 527 42, 528 ], 529 }, 530 ], 531 }, 532 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 533 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 534 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 535 42, 536 ], 537 }, 538 ], 539 }, 540 }, 541 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 542 "commonName": "A String", # Optional. The "common name" of the distinguished name. 543 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 544 "countryCode": "A String", # The country code of the subject. 545 "locality": "A String", # The locality or city of the subject. 546 "organization": "A String", # The organization of the subject. 547 "organizationalUnit": "A String", # The organizational_unit of the subject. 548 "postalCode": "A String", # The postal code of the subject. 549 "province": "A String", # The province, territory, or regional state of the subject. 550 "streetAddress": "A String", # The street address of the subject. 551 }, 552 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 553 "customSans": [ # Contains additional subject alternative name values. 554 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 555 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 556 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 557 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 558 42, 559 ], 560 }, 561 "value": "A String", # Required. The value of this X.509 extension. 562 }, 563 ], 564 "dnsNames": [ # Contains only valid, fully-qualified host names. 565 "A String", 566 ], 567 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 568 "A String", 569 ], 570 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 571 "A String", 572 ], 573 "uris": [ # Contains only valid RFC 3986 URIs. 574 "A String", 575 ], 576 }, 577 }, 578 }, 579 "createTime": "A String", # Output only. The time at which this Certificate was created. 580 "labels": { # Optional. Labels with user-defined metadata. 581 "a_key": "A String", 582 }, 583 "lifetime": "A String", # 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. 584 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 585 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 586 "pemCertificateChain": [ # 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. 587 "A String", 588 ], 589 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 590 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 591 "revocationState": "A String", # Indicates why a Certificate was revoked. 592 "revocationTime": "A String", # The time at which this Certificate was revoked. 593 }, 594 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 595}</pre> 596</div> 597 598<div class="method"> 599 <code class="details" id="get">get(name, x__xgafv=None)</code> 600 <pre>Returns a Certificate. 601 602Args: 603 name: string, Required. The name of the Certificate to get. (required) 604 x__xgafv: string, V1 error format. 605 Allowed values 606 1 - v1 error format 607 2 - v2 error format 608 609Returns: 610 An object of the form: 611 612 { # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 613 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 614 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 615 "A String", 616 ], 617 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 618 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 619 }, 620 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 621 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 622 }, 623 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 624 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 625 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 626 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 627 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 628 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 629 42, 630 ], 631 }, 632 "value": "A String", # Required. The value of this X.509 extension. 633 }, 634 ], 635 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 636 "A String", 637 ], 638 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 639 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 640 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 641 }, 642 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 643 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 644 "certSign": True or False, # The key may be used to sign certificates. 645 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 646 "crlSign": True or False, # The key may be used sign certificate revocation lists. 647 "dataEncipherment": True or False, # The key may be used to encipher data. 648 "decipherOnly": True or False, # The key may be used to decipher only. 649 "digitalSignature": True or False, # The key may be used for digital signatures. 650 "encipherOnly": True or False, # The key may be used to encipher only. 651 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 652 "keyEncipherment": True or False, # The key may be used to encipher other keys. 653 }, 654 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 655 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 656 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 657 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 658 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 659 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 660 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 661 }, 662 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 663 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 664 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 665 42, 666 ], 667 }, 668 ], 669 }, 670 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 671 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 672 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 673 42, 674 ], 675 }, 676 ], 677 }, 678 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 679 "A String", 680 ], 681 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 682 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 683 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 684 }, 685 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 686 "commonName": "A String", # The "common name" of the distinguished name. 687 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 688 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 689 "notAfterTime": "A String", # The time at which the certificate expires. 690 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 691 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 692 "countryCode": "A String", # The country code of the subject. 693 "locality": "A String", # The locality or city of the subject. 694 "organization": "A String", # The organization of the subject. 695 "organizationalUnit": "A String", # The organizational_unit of the subject. 696 "postalCode": "A String", # The postal code of the subject. 697 "province": "A String", # The province, territory, or regional state of the subject. 698 "streetAddress": "A String", # The street address of the subject. 699 }, 700 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 701 "customSans": [ # Contains additional subject alternative name values. 702 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 703 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 704 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 705 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 706 42, 707 ], 708 }, 709 "value": "A String", # Required. The value of this X.509 extension. 710 }, 711 ], 712 "dnsNames": [ # Contains only valid, fully-qualified host names. 713 "A String", 714 ], 715 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 716 "A String", 717 ], 718 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 719 "A String", 720 ], 721 "uris": [ # Contains only valid RFC 3986 URIs. 722 "A String", 723 ], 724 }, 725 }, 726 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 727 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 728 }, 729 }, 730 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 731 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 732 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 733 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 734 }, 735 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 736 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 737 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 738 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 739 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 740 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 741 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 742 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 743 42, 744 ], 745 }, 746 "value": "A String", # Required. The value of this X.509 extension. 747 }, 748 ], 749 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 750 "A String", 751 ], 752 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 753 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 754 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 755 }, 756 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 757 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 758 "certSign": True or False, # The key may be used to sign certificates. 759 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 760 "crlSign": True or False, # The key may be used sign certificate revocation lists. 761 "dataEncipherment": True or False, # The key may be used to encipher data. 762 "decipherOnly": True or False, # The key may be used to decipher only. 763 "digitalSignature": True or False, # The key may be used for digital signatures. 764 "encipherOnly": True or False, # The key may be used to encipher only. 765 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 766 "keyEncipherment": True or False, # The key may be used to encipher other keys. 767 }, 768 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 769 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 770 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 771 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 772 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 773 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 774 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 775 }, 776 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 777 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 778 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 779 42, 780 ], 781 }, 782 ], 783 }, 784 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 785 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 786 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 787 42, 788 ], 789 }, 790 ], 791 }, 792 }, 793 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 794 "commonName": "A String", # Optional. The "common name" of the distinguished name. 795 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 796 "countryCode": "A String", # The country code of the subject. 797 "locality": "A String", # The locality or city of the subject. 798 "organization": "A String", # The organization of the subject. 799 "organizationalUnit": "A String", # The organizational_unit of the subject. 800 "postalCode": "A String", # The postal code of the subject. 801 "province": "A String", # The province, territory, or regional state of the subject. 802 "streetAddress": "A String", # The street address of the subject. 803 }, 804 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 805 "customSans": [ # Contains additional subject alternative name values. 806 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 807 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 808 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 809 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 810 42, 811 ], 812 }, 813 "value": "A String", # Required. The value of this X.509 extension. 814 }, 815 ], 816 "dnsNames": [ # Contains only valid, fully-qualified host names. 817 "A String", 818 ], 819 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 820 "A String", 821 ], 822 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 823 "A String", 824 ], 825 "uris": [ # Contains only valid RFC 3986 URIs. 826 "A String", 827 ], 828 }, 829 }, 830 }, 831 "createTime": "A String", # Output only. The time at which this Certificate was created. 832 "labels": { # Optional. Labels with user-defined metadata. 833 "a_key": "A String", 834 }, 835 "lifetime": "A String", # 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. 836 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 837 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 838 "pemCertificateChain": [ # 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. 839 "A String", 840 ], 841 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 842 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 843 "revocationState": "A String", # Indicates why a Certificate was revoked. 844 "revocationTime": "A String", # The time at which this Certificate was revoked. 845 }, 846 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 847}</pre> 848</div> 849 850<div class="method"> 851 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 852 <pre>Lists Certificates. 853 854Args: 855 parent: string, Required. The resource name of the location associated with the Certificates, in the format `projects/*/locations/*/certificateauthorities/*`. (required) 856 filter: string, Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support). 857 orderBy: string, Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support). 858 pageSize: integer, Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default. 859 pageToken: string, Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token. 860 x__xgafv: string, V1 error format. 861 Allowed values 862 1 - v1 error format 863 2 - v2 error format 864 865Returns: 866 An object of the form: 867 868 { # Response message for CertificateAuthorityService.ListCertificates. 869 "certificates": [ # The list of Certificates. 870 { # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 871 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 872 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 873 "A String", 874 ], 875 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 876 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 877 }, 878 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 879 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 880 }, 881 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 882 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 883 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 884 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 885 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 886 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 887 42, 888 ], 889 }, 890 "value": "A String", # Required. The value of this X.509 extension. 891 }, 892 ], 893 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 894 "A String", 895 ], 896 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 897 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 898 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 899 }, 900 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 901 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 902 "certSign": True or False, # The key may be used to sign certificates. 903 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 904 "crlSign": True or False, # The key may be used sign certificate revocation lists. 905 "dataEncipherment": True or False, # The key may be used to encipher data. 906 "decipherOnly": True or False, # The key may be used to decipher only. 907 "digitalSignature": True or False, # The key may be used for digital signatures. 908 "encipherOnly": True or False, # The key may be used to encipher only. 909 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 910 "keyEncipherment": True or False, # The key may be used to encipher other keys. 911 }, 912 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 913 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 914 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 915 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 916 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 917 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 918 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 919 }, 920 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 921 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 922 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 923 42, 924 ], 925 }, 926 ], 927 }, 928 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 929 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 930 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 931 42, 932 ], 933 }, 934 ], 935 }, 936 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 937 "A String", 938 ], 939 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 940 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 941 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 942 }, 943 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 944 "commonName": "A String", # The "common name" of the distinguished name. 945 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 946 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 947 "notAfterTime": "A String", # The time at which the certificate expires. 948 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 949 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 950 "countryCode": "A String", # The country code of the subject. 951 "locality": "A String", # The locality or city of the subject. 952 "organization": "A String", # The organization of the subject. 953 "organizationalUnit": "A String", # The organizational_unit of the subject. 954 "postalCode": "A String", # The postal code of the subject. 955 "province": "A String", # The province, territory, or regional state of the subject. 956 "streetAddress": "A String", # The street address of the subject. 957 }, 958 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 959 "customSans": [ # Contains additional subject alternative name values. 960 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 961 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 962 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 963 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 964 42, 965 ], 966 }, 967 "value": "A String", # Required. The value of this X.509 extension. 968 }, 969 ], 970 "dnsNames": [ # Contains only valid, fully-qualified host names. 971 "A String", 972 ], 973 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 974 "A String", 975 ], 976 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 977 "A String", 978 ], 979 "uris": [ # Contains only valid RFC 3986 URIs. 980 "A String", 981 ], 982 }, 983 }, 984 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 985 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 986 }, 987 }, 988 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 989 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 990 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 991 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 992 }, 993 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 994 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 995 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 996 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 997 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 998 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 999 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1000 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1001 42, 1002 ], 1003 }, 1004 "value": "A String", # Required. The value of this X.509 extension. 1005 }, 1006 ], 1007 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1008 "A String", 1009 ], 1010 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1011 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1012 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1013 }, 1014 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1015 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1016 "certSign": True or False, # The key may be used to sign certificates. 1017 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1018 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1019 "dataEncipherment": True or False, # The key may be used to encipher data. 1020 "decipherOnly": True or False, # The key may be used to decipher only. 1021 "digitalSignature": True or False, # The key may be used for digital signatures. 1022 "encipherOnly": True or False, # The key may be used to encipher only. 1023 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1024 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1025 }, 1026 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1027 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1028 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1029 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1030 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1031 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1032 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1033 }, 1034 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1035 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1036 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1037 42, 1038 ], 1039 }, 1040 ], 1041 }, 1042 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1043 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1044 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1045 42, 1046 ], 1047 }, 1048 ], 1049 }, 1050 }, 1051 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1052 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1053 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1054 "countryCode": "A String", # The country code of the subject. 1055 "locality": "A String", # The locality or city of the subject. 1056 "organization": "A String", # The organization of the subject. 1057 "organizationalUnit": "A String", # The organizational_unit of the subject. 1058 "postalCode": "A String", # The postal code of the subject. 1059 "province": "A String", # The province, territory, or regional state of the subject. 1060 "streetAddress": "A String", # The street address of the subject. 1061 }, 1062 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1063 "customSans": [ # Contains additional subject alternative name values. 1064 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1065 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1066 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1067 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1068 42, 1069 ], 1070 }, 1071 "value": "A String", # Required. The value of this X.509 extension. 1072 }, 1073 ], 1074 "dnsNames": [ # Contains only valid, fully-qualified host names. 1075 "A String", 1076 ], 1077 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1078 "A String", 1079 ], 1080 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1081 "A String", 1082 ], 1083 "uris": [ # Contains only valid RFC 3986 URIs. 1084 "A String", 1085 ], 1086 }, 1087 }, 1088 }, 1089 "createTime": "A String", # Output only. The time at which this Certificate was created. 1090 "labels": { # Optional. Labels with user-defined metadata. 1091 "a_key": "A String", 1092 }, 1093 "lifetime": "A String", # 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. 1094 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 1095 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 1096 "pemCertificateChain": [ # 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. 1097 "A String", 1098 ], 1099 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 1100 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 1101 "revocationState": "A String", # Indicates why a Certificate was revoked. 1102 "revocationTime": "A String", # The time at which this Certificate was revoked. 1103 }, 1104 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 1105 }, 1106 ], 1107 "nextPageToken": "A String", # A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results. 1108 "unreachable": [ # A list of locations (e.g. "us-west1") that could not be reached. 1109 "A String", 1110 ], 1111}</pre> 1112</div> 1113 1114<div class="method"> 1115 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 1116 <pre>Retrieves the next page of results. 1117 1118Args: 1119 previous_request: The request for the previous page. (required) 1120 previous_response: The response from the request for the previous page. (required) 1121 1122Returns: 1123 A request object that you can call 'execute()' on to request the next 1124 page. Returns None if there are no more items in the collection. 1125 </pre> 1126</div> 1127 1128<div class="method"> 1129 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code> 1130 <pre>Update a Certificate. Currently, the only field you can update is the labels field. 1131 1132Args: 1133 name: string, Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. (required) 1134 body: object, The request body. 1135 The object takes the form of: 1136 1137{ # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 1138 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 1139 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 1140 "A String", 1141 ], 1142 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 1143 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1144 }, 1145 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 1146 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 1147 }, 1148 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 1149 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1150 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1151 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1152 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1153 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1154 42, 1155 ], 1156 }, 1157 "value": "A String", # Required. The value of this X.509 extension. 1158 }, 1159 ], 1160 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1161 "A String", 1162 ], 1163 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1164 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1165 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1166 }, 1167 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1168 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1169 "certSign": True or False, # The key may be used to sign certificates. 1170 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1171 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1172 "dataEncipherment": True or False, # The key may be used to encipher data. 1173 "decipherOnly": True or False, # The key may be used to decipher only. 1174 "digitalSignature": True or False, # The key may be used for digital signatures. 1175 "encipherOnly": True or False, # The key may be used to encipher only. 1176 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1177 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1178 }, 1179 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1180 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1181 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1182 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1183 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1184 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1185 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1186 }, 1187 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1188 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1189 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1190 42, 1191 ], 1192 }, 1193 ], 1194 }, 1195 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1196 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1197 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1198 42, 1199 ], 1200 }, 1201 ], 1202 }, 1203 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 1204 "A String", 1205 ], 1206 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 1207 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1208 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1209 }, 1210 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 1211 "commonName": "A String", # The "common name" of the distinguished name. 1212 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 1213 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 1214 "notAfterTime": "A String", # The time at which the certificate expires. 1215 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 1216 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 1217 "countryCode": "A String", # The country code of the subject. 1218 "locality": "A String", # The locality or city of the subject. 1219 "organization": "A String", # The organization of the subject. 1220 "organizationalUnit": "A String", # The organizational_unit of the subject. 1221 "postalCode": "A String", # The postal code of the subject. 1222 "province": "A String", # The province, territory, or regional state of the subject. 1223 "streetAddress": "A String", # The street address of the subject. 1224 }, 1225 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 1226 "customSans": [ # Contains additional subject alternative name values. 1227 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1228 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1229 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1230 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1231 42, 1232 ], 1233 }, 1234 "value": "A String", # Required. The value of this X.509 extension. 1235 }, 1236 ], 1237 "dnsNames": [ # Contains only valid, fully-qualified host names. 1238 "A String", 1239 ], 1240 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1241 "A String", 1242 ], 1243 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1244 "A String", 1245 ], 1246 "uris": [ # Contains only valid RFC 3986 URIs. 1247 "A String", 1248 ], 1249 }, 1250 }, 1251 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 1252 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1253 }, 1254 }, 1255 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 1256 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 1257 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1258 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1259 }, 1260 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1261 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1262 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1263 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1264 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1265 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1266 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1267 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1268 42, 1269 ], 1270 }, 1271 "value": "A String", # Required. The value of this X.509 extension. 1272 }, 1273 ], 1274 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1275 "A String", 1276 ], 1277 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1278 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1279 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1280 }, 1281 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1282 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1283 "certSign": True or False, # The key may be used to sign certificates. 1284 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1285 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1286 "dataEncipherment": True or False, # The key may be used to encipher data. 1287 "decipherOnly": True or False, # The key may be used to decipher only. 1288 "digitalSignature": True or False, # The key may be used for digital signatures. 1289 "encipherOnly": True or False, # The key may be used to encipher only. 1290 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1291 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1292 }, 1293 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1294 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1295 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1296 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1297 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1298 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1299 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1300 }, 1301 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1302 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1303 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1304 42, 1305 ], 1306 }, 1307 ], 1308 }, 1309 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1310 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1311 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1312 42, 1313 ], 1314 }, 1315 ], 1316 }, 1317 }, 1318 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1319 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1320 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1321 "countryCode": "A String", # The country code of the subject. 1322 "locality": "A String", # The locality or city of the subject. 1323 "organization": "A String", # The organization of the subject. 1324 "organizationalUnit": "A String", # The organizational_unit of the subject. 1325 "postalCode": "A String", # The postal code of the subject. 1326 "province": "A String", # The province, territory, or regional state of the subject. 1327 "streetAddress": "A String", # The street address of the subject. 1328 }, 1329 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1330 "customSans": [ # Contains additional subject alternative name values. 1331 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1332 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1333 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1334 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1335 42, 1336 ], 1337 }, 1338 "value": "A String", # Required. The value of this X.509 extension. 1339 }, 1340 ], 1341 "dnsNames": [ # Contains only valid, fully-qualified host names. 1342 "A String", 1343 ], 1344 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1345 "A String", 1346 ], 1347 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1348 "A String", 1349 ], 1350 "uris": [ # Contains only valid RFC 3986 URIs. 1351 "A String", 1352 ], 1353 }, 1354 }, 1355 }, 1356 "createTime": "A String", # Output only. The time at which this Certificate was created. 1357 "labels": { # Optional. Labels with user-defined metadata. 1358 "a_key": "A String", 1359 }, 1360 "lifetime": "A String", # 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. 1361 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 1362 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 1363 "pemCertificateChain": [ # 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. 1364 "A String", 1365 ], 1366 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 1367 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 1368 "revocationState": "A String", # Indicates why a Certificate was revoked. 1369 "revocationTime": "A String", # The time at which this Certificate was revoked. 1370 }, 1371 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 1372} 1373 1374 requestId: string, Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1375 updateMask: string, Required. A list of fields to be updated in this request. 1376 x__xgafv: string, V1 error format. 1377 Allowed values 1378 1 - v1 error format 1379 2 - v2 error format 1380 1381Returns: 1382 An object of the form: 1383 1384 { # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 1385 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 1386 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 1387 "A String", 1388 ], 1389 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 1390 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1391 }, 1392 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 1393 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 1394 }, 1395 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 1396 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1397 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1398 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1399 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1400 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1401 42, 1402 ], 1403 }, 1404 "value": "A String", # Required. The value of this X.509 extension. 1405 }, 1406 ], 1407 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1408 "A String", 1409 ], 1410 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1411 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1412 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1413 }, 1414 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1415 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1416 "certSign": True or False, # The key may be used to sign certificates. 1417 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1418 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1419 "dataEncipherment": True or False, # The key may be used to encipher data. 1420 "decipherOnly": True or False, # The key may be used to decipher only. 1421 "digitalSignature": True or False, # The key may be used for digital signatures. 1422 "encipherOnly": True or False, # The key may be used to encipher only. 1423 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1424 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1425 }, 1426 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1427 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1428 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1429 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1430 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1431 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1432 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1433 }, 1434 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1435 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1436 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1437 42, 1438 ], 1439 }, 1440 ], 1441 }, 1442 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1443 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1444 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1445 42, 1446 ], 1447 }, 1448 ], 1449 }, 1450 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 1451 "A String", 1452 ], 1453 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 1454 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1455 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1456 }, 1457 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 1458 "commonName": "A String", # The "common name" of the distinguished name. 1459 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 1460 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 1461 "notAfterTime": "A String", # The time at which the certificate expires. 1462 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 1463 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 1464 "countryCode": "A String", # The country code of the subject. 1465 "locality": "A String", # The locality or city of the subject. 1466 "organization": "A String", # The organization of the subject. 1467 "organizationalUnit": "A String", # The organizational_unit of the subject. 1468 "postalCode": "A String", # The postal code of the subject. 1469 "province": "A String", # The province, territory, or regional state of the subject. 1470 "streetAddress": "A String", # The street address of the subject. 1471 }, 1472 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 1473 "customSans": [ # Contains additional subject alternative name values. 1474 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1475 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1476 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1477 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1478 42, 1479 ], 1480 }, 1481 "value": "A String", # Required. The value of this X.509 extension. 1482 }, 1483 ], 1484 "dnsNames": [ # Contains only valid, fully-qualified host names. 1485 "A String", 1486 ], 1487 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1488 "A String", 1489 ], 1490 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1491 "A String", 1492 ], 1493 "uris": [ # Contains only valid RFC 3986 URIs. 1494 "A String", 1495 ], 1496 }, 1497 }, 1498 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 1499 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1500 }, 1501 }, 1502 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 1503 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 1504 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1505 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1506 }, 1507 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1508 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1509 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1510 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1511 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1512 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1513 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1514 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1515 42, 1516 ], 1517 }, 1518 "value": "A String", # Required. The value of this X.509 extension. 1519 }, 1520 ], 1521 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1522 "A String", 1523 ], 1524 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1525 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1526 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1527 }, 1528 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1529 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1530 "certSign": True or False, # The key may be used to sign certificates. 1531 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1532 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1533 "dataEncipherment": True or False, # The key may be used to encipher data. 1534 "decipherOnly": True or False, # The key may be used to decipher only. 1535 "digitalSignature": True or False, # The key may be used for digital signatures. 1536 "encipherOnly": True or False, # The key may be used to encipher only. 1537 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1538 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1539 }, 1540 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1541 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1542 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1543 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1544 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1545 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1546 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1547 }, 1548 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1549 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1550 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1551 42, 1552 ], 1553 }, 1554 ], 1555 }, 1556 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1557 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1558 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1559 42, 1560 ], 1561 }, 1562 ], 1563 }, 1564 }, 1565 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1566 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1567 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1568 "countryCode": "A String", # The country code of the subject. 1569 "locality": "A String", # The locality or city of the subject. 1570 "organization": "A String", # The organization of the subject. 1571 "organizationalUnit": "A String", # The organizational_unit of the subject. 1572 "postalCode": "A String", # The postal code of the subject. 1573 "province": "A String", # The province, territory, or regional state of the subject. 1574 "streetAddress": "A String", # The street address of the subject. 1575 }, 1576 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1577 "customSans": [ # Contains additional subject alternative name values. 1578 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1579 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1580 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1581 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1582 42, 1583 ], 1584 }, 1585 "value": "A String", # Required. The value of this X.509 extension. 1586 }, 1587 ], 1588 "dnsNames": [ # Contains only valid, fully-qualified host names. 1589 "A String", 1590 ], 1591 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1592 "A String", 1593 ], 1594 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1595 "A String", 1596 ], 1597 "uris": [ # Contains only valid RFC 3986 URIs. 1598 "A String", 1599 ], 1600 }, 1601 }, 1602 }, 1603 "createTime": "A String", # Output only. The time at which this Certificate was created. 1604 "labels": { # Optional. Labels with user-defined metadata. 1605 "a_key": "A String", 1606 }, 1607 "lifetime": "A String", # 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. 1608 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 1609 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 1610 "pemCertificateChain": [ # 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. 1611 "A String", 1612 ], 1613 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 1614 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 1615 "revocationState": "A String", # Indicates why a Certificate was revoked. 1616 "revocationTime": "A String", # The time at which this Certificate was revoked. 1617 }, 1618 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 1619}</pre> 1620</div> 1621 1622<div class="method"> 1623 <code class="details" id="revoke">revoke(name, body=None, x__xgafv=None)</code> 1624 <pre>Revoke a Certificate. 1625 1626Args: 1627 name: string, Required. The resource name for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. (required) 1628 body: object, The request body. 1629 The object takes the form of: 1630 1631{ # Request message for CertificateAuthorityService.RevokeCertificate. 1632 "reason": "A String", # Required. The RevocationReason for revoking this certificate. 1633 "requestId": "A String", # Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1634} 1635 1636 x__xgafv: string, V1 error format. 1637 Allowed values 1638 1 - v1 error format 1639 2 - v2 error format 1640 1641Returns: 1642 An object of the form: 1643 1644 { # A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority. 1645 "certificateDescription": { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. # Output only. A structured description of the issued X.509 certificate. 1646 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 1647 "A String", 1648 ], 1649 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 1650 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1651 }, 1652 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 1653 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 1654 }, 1655 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 1656 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1657 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1658 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1659 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1660 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1661 42, 1662 ], 1663 }, 1664 "value": "A String", # Required. The value of this X.509 extension. 1665 }, 1666 ], 1667 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1668 "A String", 1669 ], 1670 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1671 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1672 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1673 }, 1674 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1675 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1676 "certSign": True or False, # The key may be used to sign certificates. 1677 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1678 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1679 "dataEncipherment": True or False, # The key may be used to encipher data. 1680 "decipherOnly": True or False, # The key may be used to decipher only. 1681 "digitalSignature": True or False, # The key may be used for digital signatures. 1682 "encipherOnly": True or False, # The key may be used to encipher only. 1683 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1684 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1685 }, 1686 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1687 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1688 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1689 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1690 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1691 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1692 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1693 }, 1694 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1695 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1696 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1697 42, 1698 ], 1699 }, 1700 ], 1701 }, 1702 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1703 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1704 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1705 42, 1706 ], 1707 }, 1708 ], 1709 }, 1710 "crlDistributionPoints": [ # Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 1711 "A String", 1712 ], 1713 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 1714 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1715 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1716 }, 1717 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 1718 "commonName": "A String", # The "common name" of the distinguished name. 1719 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 1720 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 1721 "notAfterTime": "A String", # The time at which the certificate expires. 1722 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 1723 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 1724 "countryCode": "A String", # The country code of the subject. 1725 "locality": "A String", # The locality or city of the subject. 1726 "organization": "A String", # The organization of the subject. 1727 "organizationalUnit": "A String", # The organizational_unit of the subject. 1728 "postalCode": "A String", # The postal code of the subject. 1729 "province": "A String", # The province, territory, or regional state of the subject. 1730 "streetAddress": "A String", # The street address of the subject. 1731 }, 1732 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 1733 "customSans": [ # Contains additional subject alternative name values. 1734 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1735 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1736 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1737 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1738 42, 1739 ], 1740 }, 1741 "value": "A String", # Required. The value of this X.509 extension. 1742 }, 1743 ], 1744 "dnsNames": [ # Contains only valid, fully-qualified host names. 1745 "A String", 1746 ], 1747 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1748 "A String", 1749 ], 1750 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1751 "A String", 1752 ], 1753 "uris": [ # Contains only valid RFC 3986 URIs. 1754 "A String", 1755 ], 1756 }, 1757 }, 1758 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 1759 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1760 }, 1761 }, 1762 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Immutable. A description of the certificate and key that does not require X.509 or ASN.1. 1763 "publicKey": { # A PublicKey describes a public key. # Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR. 1764 "key": "A String", # Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. 1765 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1766 }, 1767 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1768 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1769 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1770 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1771 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1772 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1773 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1774 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1775 42, 1776 ], 1777 }, 1778 "value": "A String", # Required. The value of this X.509 extension. 1779 }, 1780 ], 1781 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1782 "A String", 1783 ], 1784 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1785 "isCa": True or False, # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. 1786 "maxIssuerPathLength": 42, # Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate. 1787 }, 1788 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1789 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1790 "certSign": True or False, # The key may be used to sign certificates. 1791 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1792 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1793 "dataEncipherment": True or False, # The key may be used to encipher data. 1794 "decipherOnly": True or False, # The key may be used to decipher only. 1795 "digitalSignature": True or False, # The key may be used for digital signatures. 1796 "encipherOnly": True or False, # The key may be used to encipher only. 1797 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1798 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1799 }, 1800 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1801 "clientAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. 1802 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1803 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1804 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1805 "serverAuth": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. 1806 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1807 }, 1808 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1809 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1810 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1811 42, 1812 ], 1813 }, 1814 ], 1815 }, 1816 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1817 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1818 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1819 42, 1820 ], 1821 }, 1822 ], 1823 }, 1824 }, 1825 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1826 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1827 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1828 "countryCode": "A String", # The country code of the subject. 1829 "locality": "A String", # The locality or city of the subject. 1830 "organization": "A String", # The organization of the subject. 1831 "organizationalUnit": "A String", # The organizational_unit of the subject. 1832 "postalCode": "A String", # The postal code of the subject. 1833 "province": "A String", # The province, territory, or regional state of the subject. 1834 "streetAddress": "A String", # The street address of the subject. 1835 }, 1836 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1837 "customSans": [ # Contains additional subject alternative name values. 1838 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1839 "critical": True or False, # Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). 1840 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1841 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1842 42, 1843 ], 1844 }, 1845 "value": "A String", # Required. The value of this X.509 extension. 1846 }, 1847 ], 1848 "dnsNames": [ # Contains only valid, fully-qualified host names. 1849 "A String", 1850 ], 1851 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1852 "A String", 1853 ], 1854 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1855 "A String", 1856 ], 1857 "uris": [ # Contains only valid RFC 3986 URIs. 1858 "A String", 1859 ], 1860 }, 1861 }, 1862 }, 1863 "createTime": "A String", # Output only. The time at which this Certificate was created. 1864 "labels": { # Optional. Labels with user-defined metadata. 1865 "a_key": "A String", 1866 }, 1867 "lifetime": "A String", # 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. 1868 "name": "A String", # Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. 1869 "pemCertificate": "A String", # Output only. The pem-encoded, signed X.509 certificate. 1870 "pemCertificateChain": [ # 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. 1871 "A String", 1872 ], 1873 "pemCsr": "A String", # Immutable. A pem-encoded X.509 certificate signing request (CSR). 1874 "revocationDetails": { # Describes fields that are relavent to the revocation of a Certificate. # Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. 1875 "revocationState": "A String", # Indicates why a Certificate was revoked. 1876 "revocationTime": "A String", # The time at which this Certificate was revoked. 1877 }, 1878 "updateTime": "A String", # Output only. The time at which this Certificate was updated. 1879}</pre> 1880</div> 1881 1882</body></html>