Retrieves a certificate from your private CA or one that has been shared with you. The
ARN of the certificate is returned when you call the IssueCertificate action. You
must specify both the ARN of your private CA and the ARN of the issued certificate when
calling the GetCertificate action. You can retrieve the
certificate if it is in the ISSUED state. You can call
the CreateCertificateAuthorityAuditReport action to create a report that
contains information about all of the certificates issued and revoked by your private
CA.
example
Use a bare-bones client and the command you need to make an API call.
Retrieves a certificate from your private CA or one that has been shared with you. The ARN of the certificate is returned when you call the IssueCertificate action. You must specify both the ARN of your private CA and the ARN of the issued certificate when calling the GetCertificate action. You can retrieve the certificate if it is in the ISSUED state. You can call the CreateCertificateAuthorityAuditReport action to create a report that contains information about all of the certificates issued and revoked by your private CA.
Use a bare-bones client and the command you need to make an API call.
import { ACMPCAClient, GetCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import // const { ACMPCAClient, GetCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import const client = new ACMPCAClient(config); const command = new GetCertificateCommand(input); const response = await client.send(command);
GetCertificateCommandInput for command's
input
shape.GetCertificateCommandOutput for command's
response
shape.config for ACMPCAClient's
config
shape.