Hi team, I’ve set up LiveKit using Docker with an ...
# ask-ai
b
Hi team, I’ve set up LiveKit using Docker with an Nginx SSL reverse proxy. Everything works well: the containers are healthy, HTTPS web access is available, and voice agents connect successfully over HTTP (ws://localhost:7880). However, I’m running into trouble when trying to connect voice agents over HTTPS (wss://localhost). The agent fails with an SSL certificate verification error because we’re using a self-signed certificate. I’d like to know the recommended way to enable secure HTTPS (wss://) connectivity for voice agents—should I disable SSL verification for development, or is there a better approach? And for production, what’s the best practice for SSL certificate setup so agents can connect securely? Here’s a snippet of the error: “SSL certificate verify failed: self signed certificate.” Any advice or examples would be appreciated.
t
Thanks for reaching out, Akash. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just a quick heads-up: to get secure HTTPS (wss://) connectivity working smoothly with LiveKit voice agents, self-signed certificates won’t cut it. You’ll need SSL certificates signed by a trusted certificate authority—even when you’re just developing. For Development: A good approach is to use a development domain that has a valid certificate from Let’s Encrypt, or set up a staging environment with proper certificates. Unfortunately, self-signed certificates just won’t do the trick here. For Production: 1. Grab a domain name and get an SSL certificate signed by a trusted certificate authority. 2. Set up HTTPS/SSL termination using a load balancer or reverse proxy. 3. You can manage domains and certificates with providers like AWS Route 53 or Namecheap, or get free certificates from Let’s Encrypt. 4. If you’re using TURN for connectivity, remember to configure separate certificates for the TURN/TLS server. If you’d like, I’m happy to help you set up certificates for your specific deployment—whether that’s Docker, Kubernetes, or a direct deployment. Just let me know! Sources: Running LiveKit on AWS | docs/tutorials/aws-public-private-route53.md | Deploy to Kubernetes | LiveKit Docs | Running LiveKit on AWS | Deploying LiveKit | LiveKit Docs