Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class GetCertificateAuthorityCertificateCommandProtected

Retrieves the certificate and certificate chain for your private certificate authority (CA) or one that has been shared with you. Both the certificate and the chain are base64 PEM-encoded. The chain does not include the CA certificate. Each certificate in the chain signs the one before it.

Example

Use a bare-bones client and the command you need to make an API call.

import { ACMPCAClient, GetCertificateAuthorityCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
// const { ACMPCAClient, GetCertificateAuthorityCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
const client = new ACMPCAClient(config);
const input = { // GetCertificateAuthorityCertificateRequest
CertificateAuthorityArn: "STRING_VALUE", // required
};
const command = new GetCertificateAuthorityCertificateCommand(input);
const response = await client.send(command);
// { // GetCertificateAuthorityCertificateResponse
// Certificate: "STRING_VALUE",
// CertificateChain: "STRING_VALUE",
// };

Param

GetCertificateAuthorityCertificateCommandInput

Returns

GetCertificateAuthorityCertificateCommandOutput

See

Throws

InvalidArnException (client fault)

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

Throws

InvalidStateException (client fault)

The state of the private CA does not allow this action to occur.

Throws

ResourceNotFoundException (client fault)

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

Throws

ACMPCAServiceException

Base exception class for all service exceptions from ACMPCA service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods