# CertificateProvider

- [JSON representation](https://docs.cloud.google.com/service-mesh/v1.23/docs/reference/network-security/rest/v1beta1/CertificateProvider#SCHEMA_REPRESENTATION)

Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.

| JSON representation |
|---|
| ``` { // Union field `type` can be only one of the following: "grpcEndpoint": { object (`https://docs.cloud.google.com/service-mesh/v1.23/docs/reference/network-security/rest/v1beta1/GrpcEndpoint`) }, "certificateProviderInstance": { object (`https://docs.cloud.google.com/service-mesh/v1.23/docs/reference/network-security/rest/v1beta1/CertificateProviderInstance`) } // End of list of possible types for union field `type`. } ``` |

| Fields ||
|---|---|
| Union field `type`. The type of certificate provider which provides the certificates and private keys. `type` can be only one of the following: ||
| `grpcEndpoint` | ``object (`https://docs.cloud.google.com/service-mesh/v1.23/docs/reference/network-security/rest/v1beta1/GrpcEndpoint`)`` gRPC specific configuration to access the gRPC server to obtain the cert and private key. |
| `certificateProviderInstance` | ``object (`https://docs.cloud.google.com/service-mesh/v1.23/docs/reference/network-security/rest/v1beta1/CertificateProviderInstance`)`` The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. |