

# 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](#acm-certificate-actions-find)
+ [Manage an ACM certificate](#acm-certificate-actions-acm)
+ [Manage an AWS Private CA certificate authority](#acm-certificate-actions-pca)
+ [Revoke a certificate issued by AWS Private CA](#acm-certificate-actions-revoke-issued)
+ [Understand operation results](#acm-certificate-actions-results)

## Find the resource to manage
<a name="acm-certificate-actions-find"></a>

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](acm-inventory-search.md#acm-inventory-related-resources). 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
<a name="acm-certificate-actions-acm"></a>


| Operation | Result | 
| --- | --- | 
| `RenewMemberCertificate` | Submits an ACM renewal for an eligible certificate | 
| `RevokeMemberCertificate` | Revokes an eligible ACM certificate for the reason that you supply in `RevocationReason`, and returns its ARN | 
| `DeleteMemberCertificate` | Deletes an ACM certificate that no other AWS service is using | 
| `UpdateMemberCertificateOptions` | Changes the options in `Options` for an eligible ACM certificate. Options that you leave out stay as they are. | 

The following certificate actions API request submits a renewal for a certificate in account `111122223333` and Region `aa-example-1`:

```json
{
  "CertificateArn": "arn:aws:acm:aa-example-1:111122223333:certificate/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}
```

Replace the example values with your own:
+ `111122223333` is your account ID.
+ `aa-example-1` is your Region.
+ `a1b2c3d4-5678-90ab-cdef-EXAMPLE11111` is 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](acm-amazon-n2-certificates.md). 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
<a name="acm-certificate-actions-pca"></a>


| Operation | Result | 
| --- | --- | 
| `UpdateMemberCertificateAuthority` | Changes the certificate authority's status to `ACTIVE` or `DISABLED`, its revocation configuration, or both. Settings that you leave out stay as they are. | 
| `DeleteMemberCertificateAuthority` | 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. | 
| `RestoreMemberCertificateAuthority` | Restores a certificate authority during its recovery period | 

The following certificate actions API request schedules deletion after 30 days:

```json
{
  "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:
+ `111122223333` is your account ID.
+ `aa-example-1` is your Region.
+ `a1b2c3d4-5678-90ab-cdef-EXAMPLE22222` is your certificate authority's identifier.
+ `PermanentDeletionTimeInDays` is 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
<a name="acm-certificate-actions-revoke-issued"></a>

`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:

```json
{
  "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:
+ `CertificateAuthorityArn` is the ARN of the certificate authority that issued the certificate.
+ `CertificateSerial` is the serial number of the certificate to revoke, in colon-separated hexadecimal.
+ `RevocationReason` is the reason for the revocation. It takes the same values as the AWS Private CA `RevokeCertificate` operation, such as `KEY_COMPROMISE` or `CERTIFICATE_AUTHORITY_COMPROMISE`.

## Understand operation results
<a name="acm-certificate-actions-results"></a>

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 | 
| --- | --- | 
| `AccessDeniedException` | 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 `AccountScope`, and its Region is in `RegionalScope`; the target account's service-linked role is ready; the target isn't in the calling account (for your own account, use the regular operation). | 
| `ResourceNotFoundException` | 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. | 
| `ConflictException` | The resource's state doesn't allow the action, for example a certificate that's in use or a certificate authority that's `ACTIVE`. This covers the conflict, invalid state, resource in use, concurrent modification, and request in progress errors of ACM and AWS Private CA, and it carries their message. | 
| `ValidationException` | 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. | 
| `ThrottlingException` | ACM or AWS Private CA throttled the call in the target account. | 
| `InternalServerException` | 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](acm-limits.md).