Using Self-Signed Certificates for Local Development
For local development, you can create a self-signed certificate and use it directly with Vuer. This approach doesn't require a proxy service, but browsers will show a security warning (which is expected for self-signed certificates).
Step 1: Generate a Self-Signed Certificate
Run the following command in your terminal to create the certificate files:
from vuer import Vuer# Create Vuer instance with TLS# host="0.0.0.0" allows connections from any network interface,# enabling access from other devices on your local network (e.g., VR headsets)vuer = Vuer(host="0.0.0.0", port=8012)vuer.cert = './cert.pem'vuer.key = './key.pem'# Your Vuer code here...
Step 3: Access the Secure Service
Find your local IP address (e.g., 192.168.1.100). You have two options for accessing Vuer:
Alternatively, use the hosted Vuer web client and point it to your local websocket:
https://vuer.ai/?ws=wss://<your-local-IP>:8012
Example:
https://vuer.ai/?ws=wss://192.168.1.100:8012
This option is convenient because you don't need to serve the web client yourself. However, if you're loading static files (like URDF models or textures), you must use absolute URLs instead of relative paths. For example: