This thesis investigates the use of Public Key Infrastructure (PKI) and Mutual TLS (mTLS) for securing communication between AI agents. The aim of the thesis is to examine the use of these technologies for establishing secure authentication, protecting communication channels, and evaluating their suitability for the development of multi-agent systems.
The theoretical part introduces the fundamental concepts of cryptography, the principles of Public Key Infrastructure, X.509 digital certificates, and the TLS and mTLS protocols. It also discusses the security challenges and limitations associated with the use of PKI in modern information systems.
The practical part presents the development of a prototype multi-agent system based on the Model Context Protocol (MCP). A local PKI hierarchy was implemented to issue digital certificates, an MCP server supporting mutual TLS authentication was developed, and multiple AI agents communicating through X.509 certificates were implemented. The development was carried out using the Python programming language, the FastAPI framework, and libraries for TLS implementation and digital certificate management.
The results demonstrate that the combination of PKI and mTLS provides reliable authentication of AI agents, secure communication, and traceability of all performed operations. The developed solution represents a functional prototype of a multi-agent system and confirms that the use of established security standards provides a suitable foundation for the development of secure distributed AI applications.
|