> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/aws-certificate-manager.md).

# AWS Certificate Manager

AWS Certificate Manager (ACM) provisions and manages TLS certificates. OctoXLabs lists the certificates in your AWS regions, with their validity and issuer details.

## Use cases

* List the certificates collected from AWS Certificate Manager.

```
Adapters = aws-acm
```

* List every certificates asset that AWS Certificate Manager contributes to the inventory.

```
Adapters = aws-acm
```

* Check what one AWS Certificate Manager connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                         | Port | Protocol |
| ------------------- | ----------------------------------- | ---- | -------- |
| OctoXLabs connector | ACM, EC2 and STS regional endpoints | 443  | HTTPS    |

### Required permissions

| Scope or role           | Permission | Needed for                                                   |
| ----------------------- | ---------- | ------------------------------------------------------------ |
| acm:ListCertificates    | Read       | Certificate list                                             |
| acm:DescribeCertificate | Read       | Certificate details                                          |
| acm:GetCertificate      | Read       | Certificate body (PEM)                                       |
| ec2:DescribeRegions     | Read       | Automatic region discovery (needed when AWS Region is blank) |
| sts:GetCallerIdentity   | Read       | Connection test                                              |

Use an IAM user or role. AWS limits DescribeCertificate and GetCertificate to 10 requests per second, so more threads do not help.

## Create credentials in AWS Certificate Manager

{% stepper %}
{% step %}

### Create the IAM identity

In the AWS IAM console, create or choose an IAM user or role and attach the permissions above.
{% endstep %}

{% step %}

### Create an access key

Under **Security Credentials**, create an access key. Save the Access Key ID and the Secret Access Key. The secret is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter               | Required | Type    | Default     | Description                                                                                                                                             |
| ----------------------- | -------- | ------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AWS Access Key ID       | Yes      | String  | None        | Access Key ID of the IAM user or role.                                                                                                                  |
| AWS Secret Access Key   | Yes      | String  | None        | Secret Access Key of that key.                                                                                                                          |
| AWS Region (Optional)   | No       | String  | All regions | Limit collection to one region, for example `us-east-1`. If blank, all available regions are scanned. CloudFront certificates live in `us-east-1` only. |
| Thread Count (Advanced) | No       | Integer | 10          | Parallel threads for certificate details. Minimum 1, maximum 10. Keep the default unless other tools on the account see throttling.                     |
| Sleep Time (Advanced)   | No       | Integer | 0           | Seconds to wait between thread batches. Increase it if AWS throttles requests.                                                                          |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 6.7.2.
{% endhint %}
