AWS and Keyfactor Detail an X.509 PKI Architecture for AI Agent Identity
AWS Machine Learning Blog presents a reference architecture that combines Keyfactor EJBCA with AWS services to authenticate AI agents, verify user delegation and enforce revocation across MCP tool calls. Its example uses Amazon Bedrock, the AWS Strands Agents SDK and FastMCP, with signed request envelopes, RFC 8693 audience-scoped tokens, OCSP checks and identity cross-validation. The post says it also provides complete example source code.
The architecture addresses a documented gap in MCP deployments by giving multi-agent systems a concrete, vendor-described pattern for cryptographic agent identity, scoped authorization and credential revocation.
When AI agents access databases, APIs, and sensitive business operations, establishing cryptographic identity through X.509 public key infrastructure (PKI) becomes a critical requirement. The core challenge is proving which agent made a request, preventing forgery between agents, and confirming that each agent acts only on behalf of an authorized user. Traditional approaches such as sharing API keys between components or passing OAuth tokens through agent chains fall short of the zero-trust requirements that enterprise deployments demand.
Multi-agent AI frameworks increasingly use the Model Context Protocol (MCP) to connect agents to external tools and data sources. MCP defines how a large language model (LLM)-powered agent invokes tools such as database queries or email operations. However, MCP has no built-in authentication standard. It is transport-agnostic by design. This creates a critical gap: Without proper identity mechanisms, any component could impersonate an agent, replay intercepted credentials, or invoke tools without authorization.
In this post, we show you how to address this gap using Keyfactor EJBCA combined with AWS services. EJBCA is a PKI platform that supports high-availability deployment, REST API automation, and Online Certificate Status Protocol (OCSP) validation. The reference architecture uses four complementary security mechanisms. First, signed request envelopes provide cryptographic proof-of-possession on every agent call. Second, user-signed delegation assertions authorize agents without sharing credentials. Third, RFC 8693 audience-scoped tokens limit the scope of exposure from any single token disclosure. Fourth, real-time OCSP revocation checking propagates credential changes immediately across all agents.
#AWS#Keyfactor#EJBCA Enterprise#Model Context Protocol#Amazon Bedrock#AWS Strands Agents SDK#FastMCP#Keycloak#Amazon EC2#Amazon RDS#AWS Secrets Manager