Perform certificate actions across your organization
To act on a certificate, find it in certificate inventory for organizations, list its related ACM and AWS Private CA resources, and send one member operation for the resource ARN that you select.
Topics
Find the resource to manage
An inventory certificate is an observation, so you can't act on it directly. Call
ListInventoryRelatedResources with the inventory certificate identifier to
find the ACM certificate, AWS Private CA certificate, or AWS Private CA certificate
authority that holds its lifecycle state, as described in Find the ACM and AWS Private CA resources for a certificate. A certificate can have more than
one related resource, so select the ARN for the account, Region, and resource that you
want to change.
Inventory data is a snapshot and can lag behind the resource. To check the current state before you act, call the ACM or AWS Private CA read operation for that ARN.
If you already know the resource's ARN, you can call the member operation without looking the certificate up in the inventory. Member operations work on any resource in an account and Region in your inventory scope.
Manage an ACM certificate
| Operation | Result |
|---|---|
|
Submits an ACM renewal for an eligible certificate |
|
Revokes an eligible ACM certificate for the reason that you
supply in |
|
Deletes an ACM certificate that no other AWS service is using |
|
Changes the options in |
The following certificate actions API request submits a renewal for a certificate in
account 111122223333 and Region aa-example-1:
{ "CertificateArn": "arn:aws:acm:aa-example-1:111122223333:certificate/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" }
Replace the example values with your own:
-
111122223333is your account ID. -
aa-example-1is your Region. -
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111is your certificate's identifier.
RenewMemberCertificate returns after ACM accepts the renewal request.
It doesn't wait for ACM to issue and deploy the renewed certificate.
RevokeMemberCertificate applies only to eligible exported public
certificates, including Amazon N2 certificates that you exported. Revocation is permanent, and ACM rejects the request while another
AWS service is using the certificate. RevocationReason takes the same
values as the ACM RevokeCertificate operation, such as
KEY_COMPROMISE or SUPERSEDED. For more information about
Amazon N2 certificates, see Amazon N2 certificates. For a certificate that can't be exported, ACM rejects the
request with the message "Export not allowed for certificate".
RenewMemberCertificate and RevokeMemberCertificate follow the
same rules as the ACM RenewCertificate and RevokeCertificate
operations, including for certificates issued through ACME.
UpdateMemberCertificateOptions supports two options in
Options: Export, with the values ENABLED and
DISABLED, and ValidationMethod, with the values
EMAIL, DNS, and HTTP.
Manage an AWS Private CA certificate authority
| Operation | Result |
|---|---|
|
Changes the certificate authority's status to
|
|
Schedules deletion of an eligible certificate authority, with a recovery period of 7 to 30 days when restoration is possible. The default is 30 days. |
|
Restores a certificate authority during its recovery period |
The following certificate actions API request schedules deletion after 30 days:
{ "CertificateAuthorityArn": "arn:aws:acm-pca:aa-example-1:111122223333:certificate-authority/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "PermanentDeletionTimeInDays": 30 }
Replace the example values with your own:
-
111122223333is your account ID. -
aa-example-1is your Region. -
a1b2c3d4-5678-90ab-cdef-EXAMPLE22222is your certificate authority's identifier. -
PermanentDeletionTimeInDaysis the number of days, from 7 to 30, to wait before permanent deletion. If you leave it out, AWS Private CA uses 30.
You can delete a certificate authority whose status is
PENDING_CERTIFICATE, CREATING, EXPIRED,
DISABLED, or FAILED. Disable an ACTIVE
certificate authority first. You can't restore a certificate authority that you deleted in CREATING
or FAILED status. When a recovery period applies, call
RestoreMemberCertificateAuthority with the same ARN to cancel permanent
deletion.
Revoke a certificate issued by AWS Private CA
RevokeMemberIssuedCertificate revokes a certificate through the
certificate authority that issued it. The request takes the certificate authority ARN,
the certificate serial number, and the revocation reason. The certificate authority's
account and Region determine the target.
The following certificate actions API request revokes a certificate through its issuing certificate authority:
{ "CertificateAuthorityArn": "arn:aws:acm-pca:aa-example-1:111122223333:certificate-authority/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "CertificateSerial": "01:23:45:67:89:ab:cd:ef", "RevocationReason": "KEY_COMPROMISE" }
Replace the example values with your own:
-
CertificateAuthorityArnis the ARN of the certificate authority that issued the certificate. -
CertificateSerialis the serial number of the certificate to revoke, in colon-separated hexadecimal. -
RevocationReasonis the reason for the revocation. It takes the same values as the AWS Private CARevokeCertificateoperation, such asKEY_COMPROMISEorCERTIFICATE_AUTHORITY_COMPROMISE.
Understand operation results
Each member operation returns success or one error. Success means that ACM or AWS Private CA accepted the request in the target account, and some actions take more time to reach their final state.
The following table lists the errors and their common causes.
| Error | Common causes |
|---|---|
|
One of the following conditions isn't met, and the message
names it: the caller has IAM permission for the operation and is
the management account or the delegated administrator; trusted
access is turned on; certificate actions are turned on; the target
account is the management account or an active member account in
|
|
The resource doesn't exist in the target account, or you sent the request to a Region other than your home Region. In that case, the message names the home Region. |
|
The resource's state doesn't allow the action, for example a
certificate that's in use or a certificate authority that's
|
|
The request isn't valid, for example a malformed ARN or an invalid argument or parameter, as reported by the member operation, ACM, or AWS Private CA, or the target Region isn't enabled for the target account. |
|
ACM or AWS Private CA throttled the call in the target account. |
|
The target account's service-linked role exists but doesn't allow the action, ACM or AWS Private CA denied access, or an unknown error occurred. |
Member operations aren't idempotent. If your client loses the response after the
action succeeds, a retry can return a different result, such as
ResourceNotFoundException or ConflictException.
Each action counts against the target account's quota for the matching ACM or AWS Private CA operation. For more information, see Quotas.