Proxy & TLS Configuration
Welcome to the home of your new documentation
In enterprise settings, proxies are commonly used to secure and control network traffic. You may encounter proxy-related issues at two points:
- During AskUI installation
- When AskUI Controller connects to AskUI Inference
Installing AskUI Through NTLM or Kerberos Proxy Server
NTLM or Kerberos proxies require authentication via your Windows user or username/password combination. We recommend using a local proxy to handle authentication.
Setting Up a Local Proxy
We recommend Px as a local proxy:
- Install Px following their documentation
- Start the proxy (default port: 3128)
Choose the binary option if package managers aren’t available in your environment.
Windows Startup Configuration
Create a px-start.bat
file in your Px installation folder:
To set up autostart:
- Create a link to
px-start.bat
- Press
Windows + R
, entershell:startup
- Move the link to this folder
Configure pip to Use Proxy
Create a pip.conf
file (Linux/macOS) or pip.ini
file (Windows):
Linux/macOS (~/.config/pip/pip.conf
):
Windows (%APPDATA%\pip\pip.ini
):
Set Environment Variables
Or set them in your system:
Linux/macOS:
Windows:
AskUI Controller Connection to AskUI Inference
Using Default Configuration with Requests
The Python client uses the requests
library which supports proxies. You can configure proxies in two ways:
Method 1: Using Environment Variables
Set the environment variables as shown above. The requests
library will automatically use these variables.
Method 2: Explicitly Configure Proxies in Code
Proxy Authentication
If your proxy requires authentication:
Handling SSL/TLS Certificate Issues
Corporate proxies often perform Deep Package Inspection by adding self-signed certificates to HTTPS requests. This can cause errors like:
or
Adding Custom Certificates (Recommended)
Extracting the Required Certificate
-
Open the certificate viewer in your browser:
- Chrome: Click the lock icon in the address bar → “Certificate”
- Firefox: Click the lock icon → “Connection Secure” → “More Information” → “View Certificate”
-
Select the root certificate (often “GTS Root R1” for corporate proxies)
-
Export/download the certificate in PEM format
-
Save it to a location accessible by your Python script
Security Note: Disabling certificate verification (verify=False
) is not recommended in production environments as it makes your connection vulnerable to man-in-the-middle attacks.
Troubleshooting
If you’re still experiencing connectivity issues:
For advanced proxy configurations or issues with specific corporate networks, please contact AskUI support with details about your environment.