# Securing AI agent identity with X.509 PKI on AWS

DevFeed: [Securing AI agent identity with X.509 PKI on AWS](<https://devfeed.tech/articles/securing-ai-agent-identity-with-x-509-pki-on-aws-91297.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/securing-ai-agent-identity-with-x-509-pki-on-aws/>)

Author: Deepakkumar Sharma

Published: 2026-10-20T16:03:48Z

Content type: article

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Security, Identity, & Compliance](<https://devfeed.tech/topics/security-identity-compliance.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [agent orchestration](<https://devfeed.tech/topics/agent-orchestration.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent-communication](<https://devfeed.tech/tags/agent-communication.md>), [agent-delegation](<https://devfeed.tech/tags/agent-delegation.md>), [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [agent-identity](<https://devfeed.tech/tags/agent-identity.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent-identity](<https://devfeed.tech/tags/ai-agent-identity.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-guardrails](<https://devfeed.tech/tags/amazon-bedrock-guardrails.md>), [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [aws](<https://devfeed.tech/tags/aws.md>), [customer-solutions](<https://devfeed.tech/tags/customer-solutions.md>), [delegation](<https://devfeed.tech/tags/delegation.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [multi-agent-ai-systems](<https://devfeed.tech/tags/multi-agent-ai-systems.md>), [ocsp](<https://devfeed.tech/tags/ocsp.md>), [pki](<https://devfeed.tech/tags/pki.md>), [reference-architecture](<https://devfeed.tech/tags/reference-architecture.md>), [request](<https://devfeed.tech/tags/request.md>), [rfc](<https://devfeed.tech/tags/rfc.md>)

## AI overview

The reference architecture links a user to each AI agent and tool call through X.509 certificates, signed delegation, and per-request proof of possession. With Keyfactor EJBCA and AWS services, the application keeps private keys locally, issues separate user and agent certificates, and gives agents an RFC 8693 token scoped to the MCP server. Signed envelopes include timestamps and unique nonces; agents and the MCP server validate signatures, CA trust, roles, audience, identity consistency, and certificate status through OCSP before processing requests. Logout revokes the user and agent certificates, deletes stored secrets, and ends the Keycloak session. The design fails closed if checks fail, including when OCSP is unreachable. Its example uses Amazon Bedrock, Strands Agents, and FastMCP with a database; the article says the pattern can extend to other MCP-compatible tools and frameworks. Distributed deployments may need a shared replay cache, such as ElastiCache.

## Source excerpt

Learn how to secure multi-agent AI systems with cryptographic identity using Keyfactor EJBCA and AWS services. This reference architecture combines signed request envelopes, user-signed delegation assertions, RFC 8693 audience-scoped tokens, and real-time OCSP revocation to prove agent identity and prevent request forgery across agent-to-agent and MCP tool calls.