# CertificateExtensionConstraints

- [JSON representation](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#SCHEMA_REPRESENTATION)
- [KnownCertificateExtension](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#KnownCertificateExtension)

Describes a set of X.509 extensions that may be part of some certificate issuance controls.

| JSON representation |
|---|
| ``` { "knownExtensions": [ enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#KnownCertificateExtension`) ], "additionalExtensions": [ { object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/ObjectId`) } ] } ``` |

| Fields ||
|---|---|
| `knownExtensions[]` | ``enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#KnownCertificateExtension`)`` Optional. A set of named X.509 extensions. Will be combined with `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#FIELDS.additional_extensions` to determine the full set of X.509 extensions. |
| `additionalExtensions[]` | ``object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/ObjectId`)`` Optional. A set of `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/ObjectId` identifying custom X.509 extensions. Will be combined with `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/CertificateExtensionConstraints#FIELDS.known_extensions` to determine the full set of X.509 extensions. |

## KnownCertificateExtension

Describes well-known X.509 extensions that can appear in a `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/projects.locations.caPools.certificates#Certificate`, not including the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/SubjectAltNames` extension.

| Enums ||
|---|---|
| `KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED` | Not specified. |
| `BASE_KEY_USAGE` | Refers to a certificate's Key Usage extension, as described in [RFC 5280 section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3). This corresponds to the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/X509Parameters#KeyUsage.FIELDS.base_key_usage` field. |
| `EXTENDED_KEY_USAGE` | Refers to a certificate's Extended Key Usage extension, as described in [RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12). This corresponds to the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/X509Parameters#KeyUsage.FIELDS.extended_key_usage` message. |
| `CA_OPTIONS` | Refers to a certificate's Basic Constraints extension, as described in [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9). This corresponds to the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/X509Parameters#FIELDS.ca_options` field. |
| `POLICY_IDS` | Refers to a certificate's Policy object identifiers, as described in [RFC 5280 section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4). This corresponds to the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/X509Parameters#FIELDS.policy_ids` field. |
| `AIA_OCSP_SERVERS` | Refers to OCSP servers in a certificate's Authority Information Access extension, as described in [RFC 5280 section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), This corresponds to the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1/X509Parameters#FIELDS.aia_ocsp_servers` field. |
| `NAME_CONSTRAINTS` | Refers to Name Constraints extension as described in [RFC 5280 section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10) |