

# Certificate inventory for organizations

**Applies to:** All plans

With certificate inventory for organizations, a capability of AWS Certificate Manager (ACM), your organization in AWS Organizations gets one read-only view of every X.509 certificate observed across its accounts and AWS Regions. It collects certificate records from ACM, from AWS Private Certificate Authority (AWS Private CA), and from the AWS Workload Credentials Provider in the accounts and Regions that you choose, and for each ACM certificate it records the AWS resources that ACM reports as using it. For what the inventory collects and what it doesn't, see [How certificate inventory observes certificates](#acm-inventory-observation).

Certificate inventory requires an ACM plan, and what the inventory collects depends on the plan. For more information, see [ACM plans](acm-plans.md).

You work with the inventory through the ACM API, which serves the certificate inventory operations from the endpoint `acm-inventory.{{region}}.api.aws`, where {{region}} is the Region code, for example `us-east-1`. The ACM console also shows the inventory, in a central monitoring dashboard and in the inventory settings.

For Java examples of each operation, see [Use AWS Certificate Manager with the SDK for Java](sdk.md). CloudTrail logs certificate inventory calls with the event source `acm.amazonaws.com`, as described in [Certificate inventory operations](acm-supported-actions-in-cloudtrail.md#ct-acm-inventory).

**Topics**
+ [How certificate inventory observes certificates](#acm-inventory-observation)
+ [How the inventory differs from searching certificates in one account](#acm-inventory-records)
+ [Who can use certificate inventory](#acm-inventory-who)
+ [Home Region](#acm-inventory-home-region)
+ [Certificate identifiers](#acm-inventory-identifiers)
+ [Data retention](#acm-inventory-retention)
+ [Set up and manage certificate inventory](acm-inventory-setup.md)
+ [Search and investigate inventory certificates](acm-inventory-search.md)
+ [Manage certificates across your organization](acm-certificate-actions.md)

## How certificate inventory observes certificates
<a name="acm-inventory-observation"></a>

The inventory doesn't scan your networks, and it doesn't read your other AWS resources. It collects certificate records from the following sources in each account and Region in your inventory scope:
+ ACM, for certificates that ACM issued and certificates imported into ACM.
+ AWS Private CA, with the Pro plan, for your certificate authorities and the certificates that they issue directly, outside ACM.
+ Telemetry from the AWS Workload Credentials Provider, for the certificates on Amazon Elastic Compute Cloud (Amazon EC2) instances and in Amazon ECS tasks and Amazon EKS pods where you run the provider with telemetry turned on. This is how certificates that aren't in ACM or AWS Private CA get into the inventory. For how to turn on telemetry and what it sends, see [Certificate and TLS endpoint telemetry](acm-cert-automation-telemetry.md).

A certificate is *observed* when one of these sources reports it. To reach the accounts in scope, the inventory uses trusted access in AWS Organizations and the `AWSServiceRoleForCertificateManagerInventory` service-linked role, as described in [Prerequisites](acm-inventory-setup.md#acm-inventory-prerequisites).

The inventory updates a record when its source reports a change, such as a new, renewed, or deleted certificate. It also checks each account in scope on a schedule, so it picks up any change that it missed. Telemetry is the exception. The inventory receives it only when the provider sends it, so it can't recover telemetry that wasn't delivered.

To learn about changes, the inventory uses an AWS Config service-linked configuration recorder that it creates in each account and Region in scope.

Usage data comes from ACM and from telemetry. ACM reports the AWS resources that use a certificate, such as load balancers and Amazon CloudFront distributions. These are resources of the services integrated with ACM, listed in [Managed automation with integrated services](acm-services.md). Telemetry reports the Amazon EC2 instances, Amazon ECS tasks, and Amazon EKS pods where the provider finds or deploys the certificate.

As a result, the inventory doesn't contain a certificate that none of these sources reports in an account and Region in scope. For example, a certificate that you created outside AWS and installed on an Amazon EC2 instance, in a container, or in an application that serves traffic inside a VPC appears only if the Workload Credentials Provider runs on that host with telemetry turned on. Otherwise, to include it, import it into ACM in an account and Region in scope. An exported ACM certificate appears in the inventory, and the host where you installed it appears as a usage only when telemetry reports it.

## How the inventory differs from searching certificates in one account
<a name="acm-inventory-records"></a>

Every account can search its own ACM certificates without a plan, as described in [Search certificates managed by AWS Certificate Manager](gs-acm-list.md). Certificate inventory for organizations is different. It covers your whole organization, and each certificate in it is an inventory record: an observation of one certificate, not an AWS resource. The following table compares the two.


| Feature | Search certificates (no plan) | Certificate inventory (with an ACM plan) | 
| --- | --- | --- | 
| Who can use it | Any account, for its own certificates | Only the management account and the delegated administrator. For more information, see [Who can use certificate inventory](#acm-inventory-who). | 
| Scope | One account and one Region for each request | Every account and Region in the inventory scope, from one request to the home Region. For more information, see [Choose which accounts to collect from](acm-inventory-setup.md#acm-inventory-account-scope) and [Choose which Regions to collect from](acm-inventory-setup.md#acm-inventory-regional-scope). | 
| What's included | The ACM certificates in the account: certificates that ACM issued, certificates issued through ACME, and imported certificates | With any plan: the ACM certificates in every account in scope. With the Pro plan, also your AWS Private CA certificate authorities and the certificates that they issue directly, outside ACM. With telemetry, also the certificates that the AWS Workload Credentials Provider finds on your hosts. | 
| What a result is | An ACM certificate, identified by its ARN | An inventory record, identified by its certificate identifier, as described in [Certificate identifiers](#acm-inventory-identifiers). It has no ARN, tags, or lifecycle state. To find the ACM and AWS Private CA resources behind it, with their ARNs, see [Find the ACM and AWS Private CA resources for a certificate](acm-inventory-search.md#acm-inventory-related-resources). | 
| Where it's used | `InUseBy` in `DescribeCertificate`, one account at a time | The usages across all accounts and Regions, including hosts that telemetry reports, from one `ListInventoryUsages` request. For more information, see [Find where a certificate is deployed](acm-inventory-search.md#acm-inventory-usages). | 
| Health | The certificate's status and renewal status | Findings and certificate health, evaluated for each ACM certificate across its renewals. For more information, see [Review certificate findings](acm-inventory-search.md#acm-inventory-findings). | 
| Acting on a certificate | ACM operations, sent from the account that owns the certificate | Member operations, sent from the management account or the delegated administrator, after you turn on certificate actions. For more information, see [Manage certificates across your organization](acm-certificate-actions.md). | 
| Cost | Offered at no additional charge | Requires an ACM plan. For more information, see [ACM plans](acm-plans.md). | 

## Who can use certificate inventory
<a name="acm-inventory-who"></a>

Only your organization's management account and its delegated administrator account can call certificate inventory operations. Only the management account can make the organization's first `PutInventoryConfiguration` call, because that call starts your plan, and only the management account can change or end the plan, including by setting `Status` to `DISABLED`. A delegated administrator that tries gets `AccessDeniedException`. For everything else, a delegated administrator has the same access as the management account. Calls from any other account fail with `AccessDeniedException`.

The service determines your organization and the calling account from the request's credentials, so no request takes an organization ID. It checks organization membership on every request. After you register a delegated administrator, it can take some time before the account can call every operation.

## Home Region
<a name="acm-inventory-home-region"></a>

Every organization has one home Region for certificate inventory, and you send all certificate inventory requests to it. Your first successful `PutInventoryConfiguration` call sets the home Region, and `GetInventoryConfiguration` returns it as `HomeRegion`. A `PutInventoryConfiguration` call from any other Region fails with `ConflictException`, and the error message names the home Region. Member operations sent to another Region fail with `ResourceNotFoundException`, and the message also names the home Region.

To see the Regions where certificate inventory is available, see [AWS Capabilities by Region](https://builder.aws.com/build/capabilities) on the AWS Builder Center website. Choose a home Region where certificate inventory is available and that's enabled by default in your account. An opt-in Region can't be your home Region. Wherever your home Region is, the inventory collects certificates from every Region in your regional scope, including opt-in Regions.

You can't change the home Region after your first successful `PutInventoryConfiguration` call, even after you turn off certificate inventory or your plan ends. Choose your home Region before you make that call.

## Certificate identifiers
<a name="acm-inventory-identifiers"></a>

The inventory identifies each record by a certificate identifier. Treat it as an opaque string. The same certificate has the same identifier in every account and Region, and an ACM certificate ARN isn't a valid identifier.

Today, the identifier is the SHA-256 hash of the certificate's DER-encoded bytes, written as 64 lowercase hexadecimal characters, but the format can change. You can compute it from a PEM-encoded certificate file:

```bash
openssl x509 -in {{certificate-file.pem}} -outform DER | sha256sum
```

The first 64 characters of the output are the identifier.

## Data retention
<a name="acm-inventory-retention"></a>

How long the inventory keeps a certificate record depends on the certificate's validity period, which is its full lifetime from its `NotBefore` date to its `NotAfter` date. Because the period doesn't depend on how much validity remains, a certificate's retention period doesn't change as it nears expiration. You set the retention period for certificates that are valid for more than 7 days with `DataRetentionDays`. Shorter-lived certificates follow fixed retention periods that you can't change. The retention period starts when the certificate expires. After it ends, the inventory deletes the certificate's record, unless the certificate is still in use. The inventory doesn't collect certificates that are valid for less than 24 hours, from any source, including telemetry.

The following table shows the retention period for each certificate validity period.


| Certificate validity period | Retention | 
| --- | --- | 
| Less than 24 hours | Not collected | 
| 24 hours, up to 7 days | 14 days | 
| More than 7 days | The value of `DataRetentionDays`, from 90 through 365 days. The default is 90. | 

A certificate that is still observed in use is never deleted, whatever its retention period. A certificate is in use while its `UsageCount` is 1 or more: when ACM reports an AWS resource that uses it, or when telemetry reports a host where it's deployed, as described in [How certificate inventory observes certificates](#acm-inventory-observation), so an expired certificate that is still deployed stays visible in the inventory. To have its record deleted, replace the certificate on each resource that `ListInventoryUsages` returns for it. `UsageCount` can differ from the in-use count that ACM shows for the certificate in one account.

You can't exclude an individual certificate from the inventory. You control what the inventory collects with its account scope and regional scope, and you can turn off certificate inventory, as described in [Turn off certificate inventory](acm-inventory-setup.md#acm-inventory-turn-off).

Turning off certificate inventory cancels your plan, and the inventory keeps collecting until the plan ends, as described in [Turn off certificate inventory](acm-inventory-setup.md#acm-inventory-turn-off). After the plan ends, the inventory deletes the records that it collected. Narrowing the regional scope stops collection from the Regions that you remove and deletes the records collected from them. For more information, see [Choose which Regions to collect from](acm-inventory-setup.md#acm-inventory-regional-scope).