[Документация Yandex Cloud](../../../../../index.md) > [Yandex Certificate Manager](../../../../index.md) > Справочник API > gRPC (англ.) > [Certificate Manager Private CA API](../index.md) > [PrivateCa](index.md) > GetCsrForCertificateAuthority

# Certificate Manager Private CA API, gRPC: PrivateCaService.GetCsrForCertificateAuthority

Retrieves the CSR for a given Certificate Authority (CA), generated by GenerateCsrForCertificateAuthority method.
This retrieves the CSR so that it can be signed by an external CA.

## gRPC request

**rpc GetCsrForCertificateAuthority ([GetCsrForCertificateAuthorityRequest](#yandex.cloud.certificatemanager.v1.privateca.GetCsrForCertificateAuthorityRequest)) returns ([CsrForSignCertificateAuthority](#yandex.cloud.certificatemanager.v1.privateca.CsrForSignCertificateAuthority))**

## GetCsrForCertificateAuthorityRequest {#yandex.cloud.certificatemanager.v1.privateca.GetCsrForCertificateAuthorityRequest}

```json
{
  "certificate_authority_id": "string"
}
```

Retrieve the CSR for a specific Certificate Authority.

#|
||Field | Description ||
|| certificate_authority_id | **string**

Required field. The ID of the Certificate Authority for which you want to retrieve the CSR.

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

## CsrForSignCertificateAuthority {#yandex.cloud.certificatemanager.v1.privateca.CsrForSignCertificateAuthority}

```json
{
  "certificate_authority_id": "string",
  "pem_content": "string"
}
```

Certificate Signing Request (CSR) for signing a certificate authority.

#|
||Field | Description ||
|| certificate_authority_id | **string**

ID of the certificate authority for which the CSR was generated. ||
|| pem_content | **string**

PEM-encoded CSR content. ||
|#