Certificate Manager Private CA API, REST: PrivateCaCertificateContent.GetPrivateKey
Written by
Updated at December 17, 2024
Returns the private key for the specified certificate.
HTTP request
GET https://private-ca.certificate-manager.api.cloud.yandex.net/privateca/v1/privateCertificates/{certificateId}:getPrivateKey
Path parameters
Request message for GetPrivateKey.
Field |
Description |
certificateId |
string Required field. ID of the certificate to get the private key for. |
Response
HTTP Code: 200 - OK
{
"certificateId": "string",
"privateKey": "string"
}
Response message containing the private key.
Field |
Description |
certificateId |
string ID of the certificate. |
privateKey |
string The private key in PEM format. |