# Certificate Manager API, gRPC: CertificateContentService.GetEx

## gRPC request

**rpc GetEx ([GetExCertificateContentRequest](#yandex.cloud.certificatemanager.v1.GetExCertificateContentRequest)) returns ([GetExCertificateContentResponse](#yandex.cloud.certificatemanager.v1.GetExCertificateContentResponse))**

## GetExCertificateContentRequest {#yandex.cloud.certificatemanager.v1.GetExCertificateContentRequest}

```json
{
  // Includes only one of the fields `certificate_id`, `folder_and_name`
  "certificate_id": "string",
  "folder_and_name": {
    "folder_id": "string",
    "certificate_name": "string"
  },
  // end of the list of possible fields
  "version_id": "string",
  "private_key_format": "PrivateKeyFormat"
}
```

#|
||Field | Description ||
|| certificate_id | **string**

The maximum string length in characters is 50.

Includes only one of the fields `certificate_id`, `folder_and_name`. ||
|| folder_and_name | **[FolderAndName](#yandex.cloud.certificatemanager.v1.FolderAndName)**

Includes only one of the fields `certificate_id`, `folder_and_name`. ||
|| version_id | **string**

The maximum string length in characters is 50. ||
|| private_key_format | enum **PrivateKeyFormat**

- `PKCS1`
- `PKCS8` ||
|#

## FolderAndName {#yandex.cloud.certificatemanager.v1.FolderAndName}

#|
||Field | Description ||
|| folder_id | **string**

Required field.

The maximum string length in characters is 50. ||
|| certificate_name | **string**

Required field.

The maximum string length in characters is 100. ||
|#

## GetExCertificateContentResponse {#yandex.cloud.certificatemanager.v1.GetExCertificateContentResponse}

```json
{
  "certificate_id": "string",
  "version_id": "string",
  "certificate_chain": [
    "string"
  ],
  "private_key": "string"
}
```

#|
||Field | Description ||
|| certificate_id | **string** ||
|| version_id | **string** ||
|| certificate_chain[] | **string** ||
|| private_key | **string** ||
|#