

# Service-affiliated certificate authorities in AWS Private Certificate Authority

A service-affiliated CA is a private CA in your account that you affiliate with an AWS service. AWS issues end-entity certificates from the CA only for the resources that you associate with the CA in that service. The service affiliation sets the CA configuration that the service needs.

A service-affiliated CA uses the `SERVICE_AFFILIATED` usage mode. You choose the service affiliation when you create the CA, and you can't change the mode or the service affiliation later. Each service affiliation presets the settings that the service needs, so every CA that you create with it works with the service. For a comparison of the modes, see [Understand AWS Private CA CA modes](ca-usage-mode.md). For instructions on creating a service-affiliated CA, see [Create a private CA in AWS Private CA](create-CA.md).

## Service-managed settings
<a name="service-affiliated-cas-settings"></a>

The service affiliation sets the following settings when you create the CA. The topic for each service affiliation lists its values.



| Setting | Description | 
| --- | --- | 
| Certificate validity | The maximum validity period of the end-entity certificates that the service issues from the CA. | 
| Revocation | Whether certificate revocation lists (CRLs) and the Online Certificate Status Protocol (OCSP) are turned on for the CA. | 
| Key algorithms | The key algorithms that you can choose when you create the CA. | 
| Deletion protection | Whether you can disable or delete the CA while it has associations. | 

## CA operations
<a name="service-affiliated-cas-operations"></a>

The following table lists the AWS Private CA operations that work differently on a service-affiliated CA.



| Operation | What you can do | 
| --- | --- | 
| IssueCertificate | You can issue only the CA's own self-signed certificate, to activate a root CA. You can't issue end-entity certificates, such as with EndEntityCertificate/V1 or CodeSigningCertificate/V1, or subordinate CA certificates. | 
| ImportCertificateAuthorityCertificate | You can import the CA certificate only once, to activate the CA. | 
| UpdateCertificateAuthority | You can change only the CA status, between ACTIVE and DISABLED. | 
| RevokeCertificate | You can revoke certificates only if the service affiliation turns on revocation. | 
| PutPolicy, DeletePolicy | You can't attach or remove a resource-based policy. | 
| CreateCertificateAuthorityAuditReport | You can't generate audit reports. | 
| AWS Certificate Manager (ACM) | You can't issue or renew ACM certificates from the CA. | 

## Monitor associations
<a name="service-affiliated-cas-associations"></a>

On the AWS Private CA console, you monitor the resources that use the CA on the **Associations** tab of the CA details page. With the API, call [ListCertificateAuthorityAssociations](https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorityAssociations.html).

## Service-affiliated CAs on the console
<a name="service-affiliated-cas-console"></a>

For a service-affiliated CA, the AWS Private CA console differs from the API in the following ways:
+ The permissions section of the create wizard lets you grant another AWS account the association actions, for cross-account use.
+ The console doesn't let you disable or delete a CA while it is attached to a resource in the affiliated service (while it has associations). Whether the API also blocks these operations depends on the affiliation. The topic for each affiliation says which applies. For the order of steps for AWS IAM for agents and workloads, see [Tear down a CA for AWS IAM for agents and workloads](PcaWorkloadIdentity-teardown.md).

## Available service affiliations
<a name="service-affiliated-cas-affiliations"></a>

The following table lists each service affiliation that AWS Private CA supports, its code in the `ServiceAffiliation` parameter, and the topic that describes the affiliation.



| Service affiliation | Code | Topic | 
| --- | --- | --- | 
| AWS IAM for agents and workloads | IAM\_WORKLOAD\_IDENTITY | [Secure workloads with AWS Private Certificate Authority and AWS IAM for agents](PcaWorkloadIdentity.md) | 