Serving Inference over HTTPS
Serve a self-hosted Roboflow Inference server over HTTPS with your own TLS certificate, custom cert paths, encrypted keys, and mutual TLS.
Environment variables
Variable
Description
Default
Quickstart with self-signed certs
# 1. Generate a self-signed cert/key pair valid for localhost
mkdir -p /tmp/inference-certs
openssl req -x509 -newkey rsa:2048 -nodes \
-keyout /tmp/inference-certs/server.key \
-out /tmp/inference-certs/server.crt \
-days 365 \
-subj "/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
# 2. Run the inference server with HTTPS enabled
docker run --rm -p 9001:9001 \
-e ENABLE_HTTPS=true \
-v /tmp/inference-certs:/etc/inference/certs:ro \
roboflow/roboflow-inference-server-cpu:latest
# 3. Validate from another shell
curl -sk https://localhost:9001/infoCustom cert paths
Encrypted private keys
Mutual TLS (client certs)
Last updated
Was this helpful?