Certificate Manager Private CA API, REST: PrivateCaContent.GetPrivateKey
Статья создана
Обновлена 17 декабря 2024 г.
Returns the private key and passphrase for the specified certificate authority.
HTTP request
GET https://private-ca.certificate-manager.api.cloud.yandex.net/privateca/v1/certificateAuthorities/{certificateAuthorityId}:getPrivateKey
Path parameters
Request message for getting the private key of a certificate authority.
Field |
Description |
certificateAuthorityId |
string Required field. ID of the certificate authority to get the private key for. |
Response
HTTP Code: 200 - OK
{
"certificateAuthorityId": "string",
"privateKey": "string",
"passphrase": "string"
}
Response message containing the private key and passphrase.
Field |
Description |
certificateAuthorityId |
string ID of the certificate authority. |
privateKey |
string The private key in PEM format. |
passphrase |
string The passphrase for the private key, if any. |