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