# Class CertificateConfig (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.3 1.13.1 1.12.2 1.11.0 1.10.3 1.9.0 1.8.1 1.7.1 1.6.1 1.5.0 1.4.3 1.3.2 1.2.4 1.1.0 1.0.6 0.4.0 0.3.0 0.1.1

    CertificateConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A
CertificateConfig
describes an X.509 certificate or CSR that is to be created, as an
alternative to using ASN.1.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `subject_config` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CertificateConfig.SubjectConfig` Required. Specifies some of the values in a certificate that are related to the subject. |
| `x509_config` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.X509Parameters` Required. Describes how some of the technical X.509 fields in a certificate should be populated. |
| `public_key` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.PublicKey` 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. |
| `subject_key_id` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CertificateConfig.KeyId` Optional. When specified this provides a custom SKI to be used in the certificate. This should only be used to maintain a SKI of an existing CA originally created outside CA service, which was not generated using method (1) described in RFC 5280 section 4.2.1.2. |

## Classes

### KeyId

    KeyId(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A KeyId identifies a specific public key, usually by hashing
the public key.

### SubjectConfig

    SubjectConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

These values are used to create the distinguished name and
subject alternative name fields in an X.509 certificate.