# Post-Quantum Cryptography (PQC) in Kong API & AI Gateway

> Source: <https://konghq.com/blog/engineering/post-quantum-cryptography-pqc-in-kong-api-ai-gateway>
> Published: 2026-12-03 17:04:00+00:00

**Key takeaway:** Kong AI Gateway 2.0.0 and current Kong API Gateway releases on OpenSSL 3.5 negotiate X25519MLKEM768 by default on non-FIPS builds; verify with openssl s_client -tls1_3 -groups X25519MLKEM768 and enforce via nginx_http_ssl_ecdh_curve.

# Post-Quantum Cryptography (PQC) in Kong API & AI Gateway

Zongmin Li

Staff Product Manager, Kong

Kong API Gateway and Kong AI Gateway support post-quantum hybrid key exchange for TLS 1.3. On a standard (non-FIPS) build, it is most likely enabled by default already, but read the document to ensure that it is enabled on your system.

The main concern for data in transit is "harvest now, decrypt later." Traffic captured today could be decrypted in the future, once sufficiently capable quantum computers exist. Migrating key exchange early protects data that needs to stay confidential for years.

You can configure PQC separately for each direction of traffic:

- **Downstream:** client to Kong

- **Upstream:** Kong to your backend services and AI providers

**FIPS builds:** post-quantum key exchange currently requires a standard (non-FIPS) build. See the FAQs.

## Kong API Gateway: PQC Support by Version

The following releases for each series ship with OpenSSL 3.5 and can negotiate `X25519MLKEM768`, `SecP256r1MLKEM768`, or `SecP384r1MLKEM1024` on standard **non-FIPS builds**. Use the latest supported patch in your release line and verify the configuration on your data plane.

The version list focuses on currently supported Kong API Gateway releases. Older releases that have reached End of Full Support are not included.

## Kong AI Gateway PQC Support

Kong AI Gateway 2.x supports hybrid post-quantum key exchange on standard non-FIPS builds, and we are working to bring this to FIPS builds too. Starting with version 2.0.0, AI Gateway uses OpenSSL 3.5, which supports hybrid PQC key-exchange groups such as `X25519MLKEM768`. OpenSSL 3.5 has enabled PQC by default.

PQC negotiation requires the hybrid group to be configured and the peer to support a common hybrid group. This is most likely enabled by default. Classical fallback is possible when classical groups are also configured.

## How to Verify PQC Support

To verify the PQC support for downstream connection, use OpenSSL command line 3.5 or later:

bash

## bash

```
1# Here we use X25519MLKEM768 as an example
2# Replace api.example.com:443 with the endpoint you want to verify, it could be the endpoint of your API/AI Gateway, or the endpoints of your upstream service
3
4openssl s_client -connect api.example.com:443 \
5  -servername api.example.com -verify_hostname api.example.com \
6  -verify_return_error -tls1_3 -groups X25519MLKEM768 -brief </dev/null
```

A successful PQC handshake should report `Negotiated TLS1.3 group: X25519MLKEM768`.

If this already works, there is nothing you need to do, unless you want to move to explicit or PQC only configuration.

## How to Explicitly Enforce PQC

These kong.conf settings apply to the HTTPS proxy on a self-managed Kong API/AI Gateway data plane. Require HTTPS on the Route and set the Gateway Service protocol to https. Additionally you may want to configure Kong to only listen to TLS traffic on input ports and disable the plain unencrypted HTTP.

Kong API and AI Gateway come by default with three named cipher suites:

These versions enable PQC implicitly by default, but don't enable explicit PQC key exchange by default but it is very likely that you have support for PQC already.

To enable PQC key exchange with downstream clients, all you need to do is to add this in your Kong configuration when using predefined modern, intermediate, and old cipher suites:

ini

## ini

```
1# tlsref.org 6.0 Recommendation
2nginx_http_ssl_ecdh_curve = X25519MLKEM768:X25519:prime256v1:secp384r1
3nginx_stream_ssl_ecdh_curve = X25519MLKEM768:X25519:prime256v1:secp384r1
4
5# Only PQC with a single algorithm:
6nginx_http_ssl_ecdh_curve = X25519MLKEM76
7nginx_stream_ssl_ecdh_curve = X25519MLKEM76
8
9# Only PQC with three algorithms:
10nginx_http_ssl_ecdh_curve X25519MLKEM768:SecP256r1MLKEM768:SecP384r1MLKEM1024
11nginx_stream_ssl_ecdh_curve X25519MLKEM768:SecP256r1MLKEM768:SecP384r1MLKEM1024
```

bash

## bash

```
1# These can also be passed to Kong via environment variable
2KONG_NGINX_HTTP_SSL_ECDH_CURVE="X25519MLKEM768:X25519:prime256v1:secp384r1"
3KONG_NGINX_STREAM_SSL_ECDH_CURVE="X25519MLKEM768:X25519:prime256v1:secp384r1"
```

And that is all you need to do. If you are using custom cipher suite, you need to:

ini

## ini

```
1ssl_cipher_suite=custom
2ssl_protocols=TLSv1.3 # ensure that TLSv1.3 is listed, add others as needed
3ssl_prefer_server_ciphers=off # not strictly neccessary
4
5# tlsref.org 6.0 Recommendation
6nginx_http_ssl_ecdh_curve = X25519MLKEM768:X25519:prime256v1:secp384r1
7nginx_stream_ssl_ecdh_curve = X25519MLKEM768:X25519:prime256v1:secp384r1
```

To verify, use the command mentioned in the “How to Verify” section, and it should succeed with a PQC group, and fail with classical groups like `-groups X25519:P-256.`

If you want to configure upstream PQC explicitly you can use (this is likely already enabled implicitly:

ini

## ini

```
1# tlsref.org 6.0 Recommendation
2nginx_http_proxy_ssl_conf_command = Groups X25519MLKEM768:X25519:prime256v1:secp384r1
3nginx_http_grpc_ssl_conf_command = Groups X25519MLKEM768:X25519:prime256v1:secp384r1
4nginx_http_lua_ssl_conf_command = Groups X25519MLKEM768:X25519:prime256v1:secp384r1
5nginx_stream_proxy_ssl_conf_command = Groups X25519MLKEM768:X25519:prime256v1:secp384r1
6nginx_stream_lua_ssl_conf_command = Groups X25519MLKEM768:X25519:prime256v1:secp384r1
```

## FAQs

**FAQ**

**Q: Can a Kong API/AI Gateway FIPS build use post-quantum TLS?**

A: The Kong API/AI Gateway releases covered in this guide cannot negotiate hybrid post-quantum key exchange on downstream or upstream TLS connections, with or without fips_mode configured. The OpenSSL FIPS provider that Kong ships is currently at 3.1.2, and it lacks ML-KEM, which X25519MLKEM768 and other mechanisms require. **To use post-quantum TLS, you’ll need to use a standard non-fips build. **Kong is working on bringing PQC support for FIPS builds.

**Q: What is the difference between Classical, Post-Quantum, and Hybrid Key Exchange?**

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong and Straiker: Runtime Security and Agent-Level Control for AI Agents

Kong AI Gateway handles the traffic patterns production agent systems depend on. The Straiker integration can be applied to configured traffic so the relevant request context is evaluated before the action continues. For LLM traffic, Straiker evalua

Parth Shah

# Kong Gateway 3.9: Extended AI Support and Enhanced Security

Today we're excited to announce Kong Gateway 3.9! Since unveiling Kong Gateway 3.8 at API Summit 2024 just a few months ago, we’ve been busy making important updates and improvements to Kong Gateway. This release introduces new functionality arou

Alex Drag

# AI FinOps: Moving Beyond Cost Visibility to Control, Optimization, and Value

Preventing runaway spending is critical, but it’s only part of the challenge. Enterprises also need to continuously improve the economics of their AI workloads. Kong combines cost visibility and governance with capabilities designed to reduce unnece

Dan Temkin

# AI Observability: Monitoring and Troubleshooting Your LLM Infrastructure

Traditional observability shows whether infrastructure and services are available, responsive, and error-free. AI observability retains those signals, then adds context ordinary APM often lacks. This includes models, tokens, retrieval results, evalu

Kong

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong and Straiker: Runtime Security and Agent-Level Control for AI Agents

Kong AI Gateway handles the traffic patterns production agent systems depend on. The Straiker integration can be applied to configured traffic so the relevant request context is evaluated before the action continues. For LLM traffic, Straiker evalua

Parth Shah

# Kong Gateway 3.9: Extended AI Support and Enhanced Security

Today we're excited to announce Kong Gateway 3.9! Since unveiling Kong Gateway 3.8 at API Summit 2024 just a few months ago, we’ve been busy making important updates and improvements to Kong Gateway. This release introduces new functionality arou

Alex Drag

# AI FinOps: Moving Beyond Cost Visibility to Control, Optimization, and Value

Preventing runaway spending is critical, but it’s only part of the challenge. Enterprises also need to continuously improve the economics of their AI workloads. Kong combines cost visibility and governance with capabilities designed to reduce unnece

Dan Temkin

# AI Observability: Monitoring and Troubleshooting Your LLM Infrastructure

Traditional observability shows whether infrastructure and services are available, responsive, and error-free. AI observability retains those signals, then adds context ordinary APM often lacks. This includes models, tokens, retrieval results, evalu

Kong

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong and Straiker: Runtime Security and Agent-Level Control for AI Agents

Kong AI Gateway handles the traffic patterns production agent systems depend on. The Straiker integration can be applied to configured traffic so the relevant request context is evaluated before the action continues. For LLM traffic, Straiker evalua

Parth Shah

# Kong Gateway 3.9: Extended AI Support and Enhanced Security

Today we're excited to announce Kong Gateway 3.9! Since unveiling Kong Gateway 3.8 at API Summit 2024 just a few months ago, we’ve been busy making important updates and improvements to Kong Gateway. This release introduces new functionality arou

Alex Drag

# AI FinOps: Moving Beyond Cost Visibility to Control, Optimization, and Value

Preventing runaway spending is critical, but it’s only part of the challenge. Enterprises also need to continuously improve the economics of their AI workloads. Kong combines cost visibility and governance with capabilities designed to reduce unnece

Dan Temkin

# AI Observability: Monitoring and Troubleshooting Your LLM Infrastructure

Traditional observability shows whether infrastructure and services are available, responsive, and error-free. AI observability retains those signals, then adds context ordinary APM often lacks. This includes models, tokens, retrieval results, evalu

Kong

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

## Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.
