How to encrypt client traffic to vLLM endpoints
TLS for a vLLM deployment is set in one of two places: at a reverse proxy or gateway in front of the server, or on the vLLM server itself. On FIPS hosts, the security guide asks operators to restrict the cipher suites with --ssl-ciphers whichever place you choose. vLLM is an open-source inference and serving engine for large language models, licensed under Apache-2.0 and started with vllm serve. It exposes OpenAI-compatible routes such as /v1/chat/completions and /v1/embeddings, so client applications send prompts, user data and API keys to the server on every call. Left on plain HTTP, that traffic crosses the network in cleartext, which is a gap to close before any shared or cross-segment use.
The first decision is where the TLS session ends. Terminating TLS at a proxy or API gateway centralizes certificate issuance and rotation, gives you one place to set protocol versions and cipher policy, and lets you apply the endpoint allowlist and authentication in the same layer. Terminating TLS on the server keeps the encrypted path from client to model process with no intermediary, which suits single-node pilots or teams with no gateway. Confirm with your security team which policy applies, since the proxy-based design also means the hop from proxy to vLLM still needs a decision about whether it is encrypted or isolated on a private network.
Before choosing cipher values, confirm the FIPS validation status of the crypto library your build of vLLM and your proxy actually use, and check the current --ssl-ciphers syntax against the vLLM serving documentation for your release. Certificates for internal service-to-service calls also need an owner, a validity period and a rotation procedure that your team can run. Ask the implementation team to show a test that negotiates a session with an unlisted cipher and confirms it is refused, and to record which certificate authority and key lengths were used in the handover.
Where TLS should terminate: proxy, gateway or vLLM server
Terminating TLS at a reverse proxy or API gateway places the certificate, cipher policy and client-facing controls in one component in front of vLLM. The vLLM security documentation recommends a reverse proxy that allowlists only the endpoints meant for users, because the built-in --api-key option does not cover paths such as /metrics, /health or /pause. The proxy is the natural place to enforce that allowlist, attach per-user authentication and apply rate limits.
- Certificate ownership: The platform or security team manages certificates on one component, which keeps renewal and rotation in a single runbook.
- Allowlisting: Only the
/v1paths users need are forwarded, and internal paths stay unreachable from user networks. - Authentication: SSO, token validation or gateway keys sit in front of vLLM rather than in a single shared key.
- Logging and metrics: Access logs appear at the proxy, while
/metricsis scraped over an internal route that the proxy does not expose to users. - Trade-off: Traffic between the proxy and vLLM usually travels in plain text unless a second TLS hop is added.
Before you rely on this pattern, confirm which paths your proxy forwards, that the vLLM port is unreachable except from the proxy, and that the proxy's cipher settings are the ones your FIPS review accepts.
Terminating TLS directly on the vLLM server keeps every hop encrypted with no extra component to operate. This suits a single-node deployment with one client population, or a team that cannot yet run a gateway. The cipher restriction on FIPS hosts is applied at the server through --ssl-ciphers, so the policy lives with the engine configuration.
- Certificate ownership: The team running vLLM owns the certificate file, its renewal and its deployment to the host, which adds work to each serving upgrade.
- Cipher policy:
--ssl-cipherssets the accepted suites on the server, which is the control the security guide points to for FIPS hosts. - Allowlisting: vLLM does not provide path-level allowlisting, so unused endpoints remain reachable unless network rules block them.
- Authentication and limits: Per-user authentication and rate limits are not part of this pattern and need a separate layer if multiple teams share the endpoint.
- Logging and metrics: Request logs and
/metricsstay on the same process, so access to metrics must be controlled by network placement.
Before you choose this pattern, confirm the TLS options your vLLM version exposes, test the cipher list against your host's cryptographic library, and confirm who can reach /metrics and /health.
A mixed pattern terminates TLS at a proxy or gateway for client traffic, then re-encrypts the connection to vLLM with a separate certificate. This keeps the allowlist and authentication at the edge while encrypting the internal hop, which matters when the proxy and engine run on different hosts or when the internal network is shared. It also doubles the certificate lifecycle, because two trust relationships must be maintained.
- Certificate ownership: Edge certificates usually come from a public or corporate CA, and internal certificates usually come from a private CA that the proxy trusts explicitly.
- Trust configuration: The proxy must validate the vLLM certificate, so the internal CA bundle and hostname checks need to be planned and tested.
- Allowlisting and authentication: These stay at the proxy, while the internal hop carries only forwarded traffic.
- Logging and metrics: Proxy logs record client identity and the forwarded path, and metrics scrapers should use an internal TLS route with their own client identity where the design requires it.
- Operational cost: Rotation, expiry monitoring and cipher policy must be applied to both components, which increases the review scope.
Before committing, confirm the cipher policy on each hop, the certificate renewal process for the internal CA, and how a failed certificate check is surfaced to operators.
Configuration options and when each fits
This table compares the main ways to encrypt traffic to a self-hosted vLLM endpoint, from terminating TLS at a proxy to restricting ciphers with --ssl-ciphers and adding mutual TLS. Read each row for the situation it fits and the cost it adds, and confirm any flag not named here against the vLLM serve reference for your version.
| Option | When it fits | Trade-off |
|---|---|---|
| TLS terminated at a reverse proxy or gateway | Most deployments with user-facing traffic, where one team already manages certificates, renewal and endpoint allowlists | The hop between proxy and vLLM stays plain unless you also encrypt it, so the internal network must be protected |
| TLS terminated on the vLLM server itself | Single-host or small setups with no proxy, or where traffic must stay encrypted end to end on the serving host | Certificate and key files must be mounted and rotated on each server, and the server does not provide the endpoint allowlist a proxy adds |
| Cipher restriction with --ssl-ciphers | FIPS-mode hosts, where the security guide asks operators to restrict TLS ciphers, and any policy that names an approved cipher list | The cipher string must match what your TLS library and clients support, so a wrong value can block legitimate callers |
| Certificates for internal service-to-service calls | Gateways, workers or batch jobs that call vLLM from inside the cluster or data center and need verified identity | Each caller must trust the internal certificate authority, which adds issuance, renewal and trust-store work |
| Mutual TLS at the proxy | Environments where only known client systems may reach inference, such as regulated workloads with strict caller identity requirements | Client certificates must be issued, distributed and revoked, and onboarding each new caller takes more effort than an API key |
| Proxy-to-vLLM encryption with a server certificate | Regulated or multi-tenant networks where traffic crosses segments the proxy team does not fully control | Adds a second certificate lifecycle and some latency, and the vLLM server must present a certificate the proxy trusts |
| Confirm other TLS flags for your version | Any certificate or key option beyond --ssl-ciphers, such as file paths for the certificate and key on the server | Flag names and behavior change across releases, so check the vLLM serve reference for the version you deploy before writing configuration |
Setup sequence for TLS with checks at each stage
This sequence takes a self-hosted vLLM deployment from an unknown exposure picture to encrypted client traffic, restricted ciphers where FIPS applies, and a verified allowlist. Each stage closes with a check the reader can repeat before moving on.
Map topology and reachable endpoints
The platform or security engineer lists every network path into the vLLM host: which clients reach it, through which proxy or gateway, and whether any multi-node traffic crosses the same network segment. Record which paths are meant for users, such as /v1/chat/completions and /v1/embeddings, and which are operational, such as /metrics, /health, /pause and /resume. The step is done when the team has a written table of intended users per endpoint and a list of network segments that carry vLLM traffic. Confirm the list with the team that owns the network, because the vLLM security docs treat inter-node traffic as unauthenticated and unencrypted unless it is isolated.
Issue certificates from the organization CA
The PKI or security team issues server certificates for the public or internal hostname of the endpoint, and client or service certificates if internal callers must authenticate with mutual TLS. Ask the CA owner for the issuing chain, key length and validity rules your policy requires, and confirm the certificate's subject alternative names match every hostname clients will use. Store private keys with restricted file permissions on the terminating host, not in the model repository or container image. The step is done when openssl or your CA tooling shows a chain that validates against the organization root from a clean client machine.
Choose and configure the termination layer
The platform team decides whether TLS ends at a reverse proxy or gateway in front of vLLM, or at the vLLM server itself. A proxy or gateway centralizes certificate rotation, logging and the endpoint allowlist, which is the pattern the vLLM security docs recommend for user-facing access. If the server terminates TLS directly, confirm the vLLM version in use supports the certificate and key options for your release, using the vLLM online serving documentation for the flags in your version. The step is done when the chosen layer serves the certificate on the user-facing port and plain HTTP is either refused or confined to a loopback or isolated interface.
Set ssl-ciphers on FIPS hosts
On hosts that must meet FIPS requirements, the security engineer restricts the cipher suites offered on the TLS listener. The vLLM security guide says operators on FIPS hosts should restrict TLS ciphers with --ssl-ciphers, so this flag applies when vLLM terminates TLS itself. When a proxy terminates TLS, set the equivalent cipher policy in the proxy and record that the vLLM server is not the TLS endpoint. Confirm the cipher list with your FIPS validation owner, since the approved set depends on your crypto module and OS build. The step is done when a scan of the listener shows only the approved suites and the server still starts and serves a test request.
Restrict the endpoint allowlist
The platform engineer configures the proxy or gateway to forward only the endpoints users need, and blocks the rest at the edge. The vLLM security docs state that the --api-key option does not cover /invocations, /pause, /resume, /abort_requests, /metrics or /health, so the allowlist, not the key, decides what external callers can reach. Keep metrics scraping and health probes on an internal listener or a network path that only the monitoring and orchestration systems use. The step is done when the allowlist configuration is committed to version control and a request to each blocked path from an external network returns a refusal.
Verify handshakes and endpoint exposure
The security engineer runs handshake tests against the user-facing hostname and checks what the handshake negotiates: protocol version, cipher suite, certificate chain and hostname match. Use an approved TLS scanner or openssl s_client, and run the same checks from outside the network and from an internal client. Then confirm that /metrics and /health are not publicly reachable, that unauthorized clients receive refusals on /v1 paths, and that plain HTTP does not serve model traffic. Record the results with the cipher list, certificate fingerprint and date, because the evidence is what an assessor will ask for. The step is done when every check passes from the external vantage point and the results are filed with the change record.
Schedule certificate and cipher reviews
The operations team adds the certificate expiry, the cipher policy and the allowlist to its recurring review, and assigns an owner for each. Rotation procedures should be tested on a non-production copy before the first real renewal, including the proxy reload and the vLLM restart that some configurations require. Tie reviews to the vLLM release cadence, because each new release may change defaults or flags, and the team should re-run the verification step after any upgrade. The step is done when the review calendar, owners and the re-test trigger for upgrades are documented and accepted by the security team.
Restricting ciphers with ssl-ciphers on FIPS hosts
The vLLM security guide tells operators on FIPS hosts to restrict TLS ciphers with --ssl-ciphers, so the cipher list the API server offers should be a decision your security team makes and records, not a library default. Start by agreeing the approved cipher list with the people who own your FIPS policy. Ask them to confirm the exact cipher string in writing, and ask them to confirm which TLS protocol versions the policy allows, because a cipher string alone does not settle what a client can negotiate. Do not copy a cipher string from a forum or an older configuration into production without that sign-off.
Next, test that the restricted server still works with every client that must reach it. Run the handshake from each application client, from the reverse proxy or gateway that sits in front of vLLM if you terminate TLS there, and from your monitoring and health-check tools. Confirm that the connection succeeds with an approved cipher and fails with one that is not approved. A server that negotiates with no client at all is a configuration failure, and a server that accepts a cipher the policy forbids is a control failure. Repeat these tests after every vLLM upgrade, since the TLS library and default behavior can change between releases. Check the release notes for the version you are moving to and confirm the cipher behavior on a staging host first.
Finally, record the configuration as evidence. Keep the approved cipher list, the vLLM version and the command or configuration file that sets --ssl-ciphers, the test results from each client, and the approval record from the security team in your change system. Confirm with your FIPS policy owner which cryptographic module the host uses and whether that module carries a validation the organization accepts for this use, because the vLLM setting restricts ciphers but does not make a deployment FIPS validated. DeployOpen does not certify or validate your configuration. Independent assessors will check the module status and your records, so ask them early which evidence they expect.
How client, gateway and vLLM connections fit together
The diagram starts at the client, which connects over TLS to a gateway or reverse proxy that is the only component exposed to users. The gateway forwards only allowlisted inference paths to vLLM over a second encrypted or private hop inside the trust boundary. Metrics and health probes use a separate internal path that users cannot reach. Check that only the gateway listens on the public interface and that each hop's certificate and cipher settings are set on the component that terminates it.
Client traffic terminates at the gateway, and metrics and health stay on an internal path.
Certificates for internal service-to-service calls
Client-facing TLS only protects the hop it terminates. Internal calls from a gateway to vLLM, and traffic between vLLM nodes, need their own certificate plan, trust store and key handling. The cards below cover the decisions that connect those hops and the checks that keep them working.
Issue certificates from an internal CA
Decide which CA signs the certificates used by the gateway, the vLLM server and any monitoring agents. An internal CA owned by your PKI team keeps issuance under your policy, but its root and intermediate keys need offline or HSM-backed protection. Confirm the certificate profile, key algorithms and extended key usage your FIPS validated libraries accept before issuing anything, since a certificate that the TLS stack rejects will only surface at startup.
Rotate and monitor expiry
Internal certificates expire, and an expired certificate on the gateway-to-vLLM path produces outages that look like model failures. Set a rotation procedure that restarts or reloads the vLLM server and proxy with the new files, and alert well before expiry. Ask your platform team how rotation is tested in a staging environment that mirrors the production cipher configuration.
Distribute trust stores to callers
Every client that calls the internal endpoint must trust the internal CA, including application servers, batch jobs and health probes. Distribute the CA bundle through your configuration management or container base images rather than copying files by hand. Test each caller separately, because a client that pins an older bundle will fail only after a CA change.
Mutual TLS between gateway and vLLM
Mutual TLS lets vLLM verify the gateway's identity, so only the gateway can reach the inference port even if another workload lands on the same network. This pairs with the allowlist and API key controls rather than replacing them. Confirm in the vLLM version you run how client certificate verification is configured, since the security docs describe the built-in API key and proxy patterns and you should verify any client certificate option against the current documentation.
vLLM security docsHandle multi-node traffic with care
The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption. Adding TLS to the API endpoint does not encrypt that node-to-node traffic. Keep Ray or torch.distributed traffic on an isolated network, and treat certificate work on the API port as a separate control from network isolation for cluster traffic.
Store private keys securely
Private keys for internal certificates should be readable only by the vLLM service account and the proxy process, and never committed to images or repositories. Consider a secrets manager or a PKI service that issues short-lived certificates so keys are generated and rotated automatically. Ask who can read key material in your Kubernetes secrets, container logs and backups, because those are the usual exposure paths.
What teams ask before outsourcing vLLM TLS work
Does vLLM itself cost money to run?
No. vLLM is licensed under Apache-2.0 and has no paid edition, so the license itself adds no fee. The money goes to the accelerator capacity that runs the model, the surrounding infrastructure such as load balancers, proxies, certificate tooling and monitoring, the implementation work to configure TLS correctly, and the people who operate it afterward. For TLS specifically, the recurring cost is mostly staff time for certificate renewal and configuration changes, plus whatever certificate authority or internal PKI service your organization already pays for. Ask any partner to separate one-time implementation from recurring operations in the quote.
How much effort does vLLM TLS work take, and what drives it?
Effort depends mostly on where TLS terminates and how many services need certificates. Terminating TLS at an existing gateway or reverse proxy that your team already runs is usually less work than configuring the vLLM server directly, because the certificate and cipher policy sit in one place. The main drivers are:
- The number of endpoints and whether internal service-to-service calls also need encryption
- Whether the host must meet FIPS requirements, which adds cipher restriction through
--ssl-ciphersand testing against the approved list - The state of your internal PKI and how many client trust stores must be updated
- The number of environments, such as development, staging and production, each with its own certificates
Ask for a written scope that lists each endpoint and certificate, so the effort estimate can be checked against it.
Can an internal team set up vLLM TLS without outside help?
Often yes, if the team already operates a TLS-terminating proxy and an internal certificate authority. The work is well bounded: choose where TLS ends, issue server certificates, set protocol and cipher policy, configure client trust, and test the result. Teams with little experience in cipher policy or FIPS-mode host configuration tend to benefit from an outside review of the cipher list and the test plan. Consider a partner when the team lacks someone who can read a certificate chain and a proxy configuration with confidence, or when the work must be evidenced for an assessment. Whichever path you choose, assign one named owner for certificate lifecycle before go-live.
What do you need from our team before TLS work starts?
The work moves faster when the client provides access and documents early. Typical inputs include:
- Access to the internal certificate authority or the process for requesting certificates from it
- Current network diagrams showing where vLLM, its proxy or gateway, clients and any multi-node peers sit
- The approved cipher and protocol list from your security or compliance team, including any FIPS requirement
- Inventory of client applications and the trust stores they use
- A decision on which endpoints must stay internal, drawn from your planned allowlist
DeployOpen plans and implements this work inside your infrastructure, so these inputs should come from your own environment and approval process. Confirm which of them your organization already has before requesting a quote.
How are certificate rotation and vLLM upgrades handled after go-live?
Rotation and upgrades are recurring work and should be designed before go-live. Certificates expire, so the renewal process, the owner, the alert threshold and the reload procedure for the proxy or server all need to be written down. vLLM ships new minor releases about every two weeks, so each upgrade can change flags or defaults that affect TLS configuration, and each upgrade should be retested against the cipher policy. DeployOpen can provide ongoing support, upgrades and continuous testing as a retainer, and can also hand the runbook to your own team. Ask any provider how renewal is tested, who is alerted on failure and how a failed rotation is rolled back.
Does TLS alone protect vLLM from unauthorized use?
No. TLS encrypts traffic in transit, but it does not decide who may call an endpoint. The vLLM security documentation says the --api-key option does not cover every path, and recommends a reverse proxy that allowlists only the endpoints meant for users. Encryption, authentication and endpoint allowlisting are separate controls and need separate tests. Inter-node traffic in multi-node deployments is unauthenticated and unencrypted by default and must be isolated on a private network, which TLS on the API port does not address. Ask any partner how these controls are scoped in the same engagement.
Will this TLS work help with an audit or compliance review?
It can supply evidence, but it does not pass an audit by itself. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, cipher policy and test results. Independent auditors and certification bodies issue any audit report or certification, and DeployOpen does not. Ask your assessor early which evidence they expect for encryption in transit and for FIPS-related cipher restriction, so the configuration and test records match what they will request.
How DeployOpen scopes and delivers vLLM TLS hardening
DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside the client's own infrastructure, and that includes TLS work for vLLM. DeployOpen is a Chainscore Labs company. For this topic, the engagement covers the decisions in this guide: where TLS terminates, which protocol versions and ciphers the endpoints accept, how certificates are issued and rotated for both client traffic and internal service-to-service calls, and how the configuration is documented for your operators. The work runs in your cloud accounts, data centers or air-gapped networks, so the keys, certificate authority and logs stay under your control.
Engagements are fixed-scope. Before work starts, the endpoints in scope, the chosen termination point, any FIPS requirements for the host, the certificate sources, the deliverables and the timeline are agreed in writing, and a quote follows from that scope. DeployOpen does not publish a price list. DeployOpen prepares the configuration, the evidence and the runbook that your compliance and security teams need for review, but it does not issue audit reports, attestations or certifications. Those come from independent auditors and certification bodies, so ask your assessor early which evidence they will request.
Once the configuration is in place, security testing can verify it from the outside, checking which protocol versions and cipher suites the endpoints actually negotiate and whether plaintext paths remain. Because vLLM releases minor versions about every two weeks, TLS settings and the proxy or gateway in front of them need periodic retesting after upgrades. Ongoing upgrades, configuration reviews and continuous testing can be covered by a retainer, which you should price against how often your release process changes the serving stack.

