John Howard 2371a5f37d
Docs: use URL for schemas (#954)
Makes it much more practical to use these
2026-02-12 14:52:28 -08:00
..
2025-10-16 13:18:48 -07:00
2026-02-12 14:52:28 -08:00
2025-07-09 12:51:59 -07:00

TLS Example

This example shows how expose agentgateway on an HTTPS listener.

Running the example

cargo run -- -f examples/tls/config.yaml

Beyond the basic configuration, we have changed our listener to be of protocol HTTPS and add tls information, using an example key and certificate.

listeners:
- name: default
  protocol: HTTPS
  tls:
    cert: examples/tls/certs/cert.pem
    key: examples/tls/certs/key.pem

This example currently won't work with the mcpinspector as it doesn't support unverified TLS certificates. However, we can use curl to send a request to verify the TLS is working properly:

$ curl https://localhost:3000 -k
Not Acceptable: Client must accept text/event-stream

Note the -k to disable TLS verification, as the example certificate is self-signed. The request fails as we did not pass a valid MCP request, but this shows the TLS was handled properly.