Applications running in cloud environments often need digital certificates to establish trusted connections. These certificates help workloads authenticate themselves, secure communication, and prove their identity to other services.
Managing certificates becomes more complicated when applications use multiple AWS services. A service may need permission to issue certificates from an organization's private certificate authority (CA). Traditionally, administrators had to configure CA permissions, certificate templates, and other controls carefully to ensure that the service could issue only the certificates it actually needed.
AWS Private Certificate Authority (AWS Private CA) introduces service-affiliated certificate authorities to simplify this process.
A service-affiliated CA is a private CA owned by your AWS account but associated with a specific AWS service. Only that affiliated service can request end-entity certificates from it, and only for resources associated with the CA through that service.
AWS announced general availability of the service-affiliated operating mode on December 1, 2026. At launch, the supported affiliation is AWS IAM for agents and workloads, which is itself in preview and can issue short-lived X.509 credentials to workloads.
In this article, we'll explore how service-affiliated CAs work, how they differ from traditional private CAs, and how to create, activate, replicate, and associate one with an AWS workload identity provider.
What Is a Service-Affiliated Certificate Authority?
A certificate authority is responsible for issuing and managing digital certificates. It signs certificates that other systems can trust when establishing secure connections or verifying identities.
AWS Private CA provides a managed private public key infrastructure (PKI). Organizations can create root and subordinate CAs, manage their certificates, and configure certificate revocation mechanisms.
A service-affiliated CA adds a service-specific security boundary to this model.
Instead of allowing an AWS service to use a CA through broad permissions, you associate the CA with a particular service when creating it. AWS Private CA then applies the configuration required by that service.
For example, suppose an organization runs several AI agents and background workloads in AWS. These workloads need short-lived X.509 credentials to authenticate themselves.
The organization can create a private CA, associate it with AWS IAM for agents and workloads, and attach it to a workload identity provider. The affiliated service can then issue certificates for the resources associated with that provider.
The organization continues to own the CA and can monitor its associations and certificate activity.
How the service affiliation works
The relationship can be understood through three components:
AWS Private CA owns and manages the private certificate authority.
The affiliated AWS service is the only service authorized to request end-entity certificates from that CA.
Associated resources receive certificates through the affiliated service's identity and certificate workflow.
The following diagram illustrates the architecture for AWS IAM for agents and workloads.
AWS Account
|
v
AWS Private CA
|
Service-Affiliated CA
|
v
AWS IAM for Agents and Workloads
|
Workload Identity Provider
|
+--------+--------+
| |
v v
AI Agent Application
| |
v v
X.509 Certificate X.509 Certificate
| |
+--------+--------+
|
v
Workload Authentication
The important difference is that the application does not directly request an arbitrary certificate from AWS Private CA. The affiliated service manages certificate issuance according to its own requirements.
Why Use a Service-Affiliated CA?
The main reason to use this model is to reduce the risk of giving cloud services broader certificate-issuing permissions than they need.
Restrict certificate issuance
With a general-purpose CA, administrators can grant an AWS service permission to issue certificates using IAM policies and certificate templates.
That approach provides flexibility, but it also requires careful configuration. A permission that is too broad can allow certificate issuance beyond the intended workload use case.
A service-affiliated CA limits certificate issuance to the affiliated service and the resources associated with it.
For example, a CA affiliated with AWS IAM for agents and workloads cannot be used to issue code-signing or document-signing certificates through that service.
Apply service-specific configuration
Different AWS services can have different certificate requirements.
One service might require short-lived certificates, while another might need specific key algorithms or revocation behavior.
The service affiliation configures the CA according to the requirements of the selected service. Administrators do not need to manually reproduce every service-specific setting.
Retain ownership of the CA
The CA remains in the organization's AWS account. Administrators retain visibility into the CA, its configuration, and the resources associated with it.
This is useful for organizations that want to use managed AWS services without giving up control of their private trust infrastructure.
Reduce accidental deletion
AWS Private CA can enforce deletion protection while a CA has associations, depending on the service affiliation.
For the AWS IAM for agents and workloads affiliation, the service-specific lifecycle rules help prevent administrators from accidentally deleting a CA that is still attached to a workload identity provider.
Understanding AWS Private CA Operating Modes
AWS Private CA supports three operating modes.
Mode | Purpose | Certificate validity |
|---|
General-purpose | General private PKI requirements | Configurable validity periods |
Short-lived certificate | Applications that frequently replace certificates | Maximum seven days |
Service-affiliated | Certificate issuance controlled by a specific AWS service | Defined by the service affiliation |
General-purpose mode
General-purpose mode is the default option. It supports certificates with configurable expiration dates and is suitable for a wide range of private PKI requirements.
For example, an organization might use a general-purpose CA to issue certificates for internal web servers, application services, and devices.
Short-lived certificate mode
Short-lived mode is designed for certificates that expire quickly. AWS Private CA limits the validity period of certificates issued by this CA mode to a maximum of seven days.
This can reduce dependence on traditional certificate revocation mechanisms because compromised or unused certificates expire quickly.
However, short-lived certificates require a reliable renewal and replacement process.
Service-affiliated mode
Service-affiliated mode connects a private CA to one AWS service. Only that service can issue end-entity certificates from the CA, and only for resources associated with it.
Unlike the other modes, the service affiliation determines the CA configuration required by the service.
You must choose the mode and service affiliation when creating the CA. Neither can be changed later.
Prerequisites
Before creating a service-affiliated CA, prepare the AWS environment.
You need:
An AWS account with AWS Private CA available in the selected Region.
AWS CLI version 2 installed and configured.
Permissions to create, activate, manage, and replicate certificate authorities.
A workload identity provider in AWS IAM.
A parent CA if you plan to create a subordinate CA.
Access to every AWS Region where you intend to replicate the CA.
For AWS IAM for agents and workloads, the primary CA must be created in the US East (N. Virginia) Region, us-east-1.
You can then replicate it to the Regions where your workloads run.
The following example creates a root CA. If your organization already has an established root of trust, you can create a subordinate CA instead.
Step 1: Prepare the CA Configuration
AWS Private CA requires a configuration containing the key algorithm, signing algorithm, and subject information.
Create a file named ca_config.json:
{
"KeyAlgorithm": "EC_prime256v1",
"SigningAlgorithm": "SHA256WITHECDSA",
"Subject": {
"CommonName": "workload-identity-ca.example.com"
}
}
This example uses an elliptic curve key with the P-256 curve and the SHA-256 ECDSA signing algorithm.
For the AWS IAM for agents and workloads affiliation, supported key algorithms include:
RSA 2048
RSA 3072
RSA 4096
EC prime256v1
EC secp384r1
EC secp521r1
Choose an algorithm based on your organization's security requirements and compatibility with the workloads that will use the certificates.
The Common Name identifies the certificate authority. Replace the example value with a name appropriate for your organization.
Step 2: Create the Service-Affiliated CA
Use the AWS CLI create-certificate-authority command.
aws acm-pca create-certificate-authority \
--region us-east-1 \
--certificate-authority-type ROOT \
--certificate-authority-configuration file://ca_config.json \
--usage-mode SERVICE_AFFILIATED \
--service-affiliation ServiceAffiliationCode=IAM_WORKLOAD_IDENTITY
There are several important parameters in this command.
Parameter | Purpose |
|---|
region | Creates the primary CA in us-east-1 |
certificate-authority-type | Creates a root CA |
certificate-authority-configuration | Provides key and subject information |
usage-mode | Selects service-affiliated operation |
service-affiliation | Associates the CA with AWS IAM for agents and workloads |
The service-affiliation value IAM_WORKLOAD_IDENTITY identifies the supported service affiliation.
The command returns a certificate authority ARN.
{
"CertificateAuthorityArn": "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}
Save this ARN because you will need it for the activation and replication steps.
At this point, the CA is created but is not active. Its status is PENDING_CERTIFICATE because the CA certificate has not yet been installed.
Step 3: Activate the Certificate Authority
A newly created CA must have its certificate installed before it can become active.
For a root CA, you retrieve its certificate signing request (CSR), sign it using the root CA, and import the resulting certificate.
For a subordinate CA, the CSR must be signed by its parent CA.
Retrieve the CSR
Use the get-certificate-authority-csr command:
aws acm-pca get-certificate-authority-csr \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--output text > ca.csr
Replace YOUR_CA_ARN with the ARN returned when you created the CA.
The command saves the CSR to ca.csr.
Sign the root CA certificate
For a root CA, use issue-certificate with the RootCACertificate template.
aws acm-pca issue-certificate \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--csr fileb://ca.csr \
--signing-algorithm SHA256WITHECDSA \
--template-arn arn:aws:acm-pca:::template/RootCACertificate/V1 \
--validity Value=10,Type=YEARS
This example creates a root CA certificate with a validity period of ten years.
The command returns a certificate ARN. Use it to retrieve the certificate:
aws acm-pca get-certificate \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--certificate-arn YOUR_CERTIFICATE_ARN \
--output text > ca.pem
The resulting ca.pem file contains the CA certificate.
Import the certificate
Install the certificate using the import-certificate-authority-certificate command:
aws acm-pca import-certificate-authority-certificate \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--certificate fileb://ca.pem
After a successful import, the CA status changes to ACTIVE.
For a subordinate CA, do not self-sign the CSR. Have the parent CA sign it, then import the signed certificate and its complete certificate chain.
For this service affiliation, do not configure CRLs or OCSP. The affiliation controls the revocation configuration required for the service.
Step 4: Replicate the CA to Other Regions
A workload identity provider can have workloads running in multiple AWS Regions.
To support certificate issuance in those Regions, replicate the active CA.
For AWS IAM for agents and workloads, the primary CA is created in us-east-1. AWS STS issues workload certificates from the CA replica in the workload's Region.
If a Region does not have an active replica, workloads in that Region cannot obtain certificates from this CA.
The following command creates replicas in two Regions:
aws acm-pca batch-create-certificate-authority-replica \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--replicas \
'ReplicaRegion=us-west-2,IdempotencyToken=usw2-001' \
'ReplicaRegion=eu-west-1,IdempotencyToken=euw1-001'
You can create replicas in up to 20 Regions in one batch operation.
The target Regions must be enabled for your AWS account.
Verify the replicas
Use list-certificate-authority-replicas to check their status:
aws acm-pca list-certificate-authority-replicas \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN
A replica initially has the status CREATING. It becomes ACTIVE after the replication process completes.
Do not attach the CA to a workload identity provider and assume that every Region is ready immediately. Verify that the required replicas are active first.
Step 5: Attach the CA to a Workload Identity Provider
After activating and replicating the CA, associate it with the workload identity provider in AWS IAM.
The provider represents the identity configuration used by your agents and workloads.
Use the create-workload-identity-provider-outbound-signer command:
aws iam create-workload-identity-provider-outbound-signer \
--workload-identity-provider-arn YOUR_PROVIDER_ARN \
--outbound-signer \
'X509={CertificateAuthorityId=YOUR_CA_ID,AccountId=123456789012}'
Replace the example values with:
YOUR_PROVIDER_ARN: The ARN of your workload identity provider.
YOUR_CA_ID: The certificate authority ID.
AccountId: The AWS account that owns the CA.
The command associates the CA with the provider as its X.509 outbound signer.
IAM uses the CA ID and owner account ID rather than a Region-specific CA ARN for this association.
By default, IAM starts the signer one hour after the CA is attached. You can change this delay with the signing-delay-in-hours option.
Until the signer starts, workloads requesting certificates can receive a RegionalSignerUnavailableException.
Plan the association and rollout accordingly. Do not move production workloads to the new identity configuration until the signer is available.
Step 6: Configure Cross-Account Access
Some organizations maintain their certificate authority in a central security account while workload identity providers exist in other AWS accounts.
AWS Private CA supports cross-account use for service-affiliated CAs.
If the workload identity provider is in another account, the CA owner must grant that account permission to associate and disassociate the CA.
Use the create-permission command:
aws acm-pca create-permission \
--region us-east-1 \
--certificate-authority-arn YOUR_CA_ARN \
--principal arn:aws:iam::444455556666:root \
--actions \
CreateCertificateAuthorityAssociation \
DeleteCertificateAuthorityAssociation \
DescribeCertificateAuthority \
GetCertificateAuthorityCertificate
Replace the account ID with the account that manages the workload identity provider.
For service-affiliated CAs, the cross-account principal must be the root principal of another AWS account. The permission model is more restricted than the general-purpose CA model.
The workload identity provider must also meet the cross-account requirements for AWS IAM for agents and workloads.
Monitoring Certificate Authority Associations
Once the CA is attached to a service, monitoring its associations becomes an important operational task.
AWS Private CA provides an Associations tab in the CA details page in the console. It displays the resources using the CA.
You can also use the ListCertificateAuthorityAssociations API operation to inspect associations programmatically.
CloudTrail provides visibility into certificate activity and related API operations.
For production environments, review these records regularly to understand which resources are associated with the CA and when certificates are requested or managed.
Service-Affiliated CA vs. General-Purpose CA
Both CA modes support private certificate infrastructure, but their security and operational models are different.
Area | General-purpose CA | Service-affiliated CA |
|---|
Certificate issuance | Can be used by authorized principals | Only the affiliated AWS service |
Service association | Not required | Required |
Certificate templates | Configurable | Controlled by the affiliation |
CA configuration | Managed by the customer | Service-specific settings are enforced |
End-entity issuance through ACM | Supported where compatible | Not supported |
Resource-based CA policies | Supported | Cannot be attached or removed |
Audit reports | Supported | Not available |
Best suited for | General internal PKI | Service-managed certificate issuance |
Choose general-purpose mode when applications need a flexible CA that can issue certificates for different use cases.
Choose service-affiliated mode when a supported AWS service should issue certificates under a tightly controlled configuration.
Common Mistakes to Avoid
Choosing the wrong operating mode
The service affiliation cannot be changed after the CA is created.
Before creating the resource, confirm that the selected AWS service supports the service-affiliated model and that the CA will be used for the intended purpose.
Assuming the service can issue every certificate type
A service-affiliated CA does not provide unrestricted certificate issuance.
The affiliated service can issue only the certificate types permitted by its configuration. For example, AWS IAM for agents and workloads cannot use its affiliated CA to issue code-signing or document-signing certificates.
Forgetting to activate the CA
Creating the CA does not make it immediately available.
You must retrieve the CSR, sign the CA certificate, and import it before the CA becomes active.
Skipping regional replication
For multi-Region workloads, an active primary CA is not enough.
Replicate the CA to every Region where workloads need certificates and verify that each replica is ACTIVE.
Ignoring signer startup time
The workload identity provider's signer does not necessarily start immediately after association.
The default startup delay is one hour. Applications should not assume that certificate issuance is available as soon as the association command completes.
Treating the CA like a general-purpose CA
Service-affiliated CAs have restrictions on operations such as issuing end-entity certificates directly, configuring resource-based policies, generating audit reports, and using AWS Certificate Manager.
Do not build automation around general-purpose CA workflows without checking whether the operation is supported for the selected affiliation.
Best Practices for Production Environments
Use a subordinate CA when your organization already has an established root of trust and wants to keep workload identity certificates within that hierarchy.
Select the key algorithm according to your workload security requirements and compatibility needs.
Create the primary CA in the required Region and replicate it to every Region where workloads operate.
Verify replica status before attaching the CA to a workload identity provider.
Use least-privilege IAM policies for administrators managing the CA and its associations.
Use cross-account permissions only when necessary, and grant only the supported association actions.
Monitor CA associations and certificate activity through the console, APIs, and CloudTrail.
Plan certificate issuance around the signer startup delay.
Document the CA lifecycle, including creation, activation, replication, association, and teardown.
Test workload identity and certificate retrieval in a non-production environment before moving production workloads to the new configuration.
Advantages and Limitations
Advantages
Restricts certificate issuance to one affiliated AWS service.
Applies service-specific CA settings automatically.
Reduces the risk of overly broad certificate-issuing permissions.
Allows organizations to retain ownership of their private CAs.
Supports root and subordinate CA configurations.
Provides visibility into CA associations and certificate activity.
Helps prevent accidental deletion while associations exist, according to the affiliation's lifecycle rules.
Limitations
The service affiliation cannot be changed after CA creation.
Only supported AWS services can use this operating mode.
At launch, AWS IAM for agents and workloads is the supported affiliation.
The IAM for agents and workloads integration is in preview.
General-purpose CA operations are restricted or unavailable.
Multi-Region workloads require active CA replicas in their respective Regions.
Cross-account association has additional permission requirements.
Summary
Service-affiliated certificate authorities add a service-specific security model to AWS Private CA. Instead of granting an AWS service broad permission to issue certificates, organizations associate a CA with a supported service and let AWS enforce the configuration required for that integration.
The operating mode became generally available on December 1, 2026. At launch, AWS IAM for agents and workloads is the supported affiliation and provides a way to issue short-lived X.509 credentials to associated workloads.
The setup involves creating the CA, activating it with a signed certificate, replicating it to the required Regions, and attaching it to a workload identity provider.
For organizations building AI agents and distributed workloads, this model offers a more controlled approach to workload certificate issuance while keeping the underlying private CA under organizational ownership.
Before adopting it, understand the service-specific restrictions, regional requirements, signer startup delay, and CA lifecycle rules. These details are important for building a reliable workload identity architecture.
Join the conversation! Your thoughts help the community grow.