Corporate developer workstations rarely enjoy direct, uninspected internet access. When enterprises roll out IBM watsonx Code Assistant across development teams, engineers in financial institutions, defense contractors, and large enterprises run straight into connection timeouts, broken handshake exceptions, and authentication lockouts. Out-of-the-box, neither Visual Studio Code nor Eclipse IDE will trust an enterprise forward proxy that intercepts TLS traffic to perform Deep Packet Inspection (DPI).
At 365Finds, we often see developers reach for the easiest workaround: toggling "http.proxyStrictSSL": false in VS Code or tossing -DtrustAll flags into Java arguments. 365Finds firmly warns against this shortcut. Disabling certificate verification globally destroys your workstation's defense against man-in-the-middle attacks, exposes corporate source code, and directly violates SOC 2 and ISO 27001 requirements. The only production-grade solution is configuring explicit proxy routing, injecting the corporate Root and Intermediate Certificate Authority (CA) into the relevant runtime truststores, and establishing mutual TLS (mTLS) where private API gateways demand client verification.
Here is the exact operational playbook 365Finds recommends for configuring IBM watsonx Code Assistant in VS Code and Eclipse behind enterprise SSL proxies.
The Network Failure Points: Node.js vs. JVM
IBM watsonx Code Assistant plugins communicate with two core destinations: public IBM Cloud identity and inference endpoints (iam.cloud.ibm.com, watsonx.ai foundation model gateways) or on-premises IBM Software Hub / Red Hat OpenShift clusters (hosting Z Refactoring Assistant or custom enterprise models).
When outbound requests hit an enterprise proxy like Zscaler, Blue Coat, or Palo Alto Networks, the proxy decrypts the traffic, inspects the payload, and re-encrypts it using a custom corporate internal CA.
Failure occurs differently in each IDE:
- VS Code (Node.js & Electron): The extension runtime uses Node's underlying TLS stack. Historically, Node relies on bundled Mozilla CAs rather than the operating system's trust store. When the proxy returns a certificate signed by your company's internal root, Node throws
UNABLE_TO_VERIFY_LEAF_SIGNATUREorSELF_SIGNED_CERT_IN_CHAIN. - Eclipse IDE (Java Virtual Machine): Eclipse runs on a JDK/JRE. Java completely ignores the host OS certificate store by default, relying exclusively on
$JAVA_HOME/lib/security/cacerts. When the proxy intercepts the connection, Java raisesjavax.net.ssl.SSLHandshakeException: PKIX path building failed: SunCertPathBuilderException.
Resolving these requires targeting the exact runtime underneath each IDE.
1. Configuring VS Code for IBM watsonx Code Assistant
VS Code requires two simultaneous fixes: routing network requests through your corporate proxy endpoint and forcing Node.js to trust the proxy's TLS certificate chain.
Step 1: Proxy Routing and Strict SSL Enforcement
Open your user settings in VS Code (settings.json):
{
"http.proxy": "http://proxy.yourcompany.com:8080",
"http.proxyStrictSSL": true,
"http.proxySupport": "override",
"http.proxyAuthorization": null
}
Note on authenticated proxies: If your proxy requires Active Directory or NTLM credentials, provide them in the URL format http://user:password@proxy.yourcompany.com:8080. For corporate environments enforcing Kerberos/SSO without exposed cleartext passwords, route VS Code through a local forwarding proxy such as Px or Cntlm.
Step 2: Injecting Corporate Root CA into the Node.js Runtime
Never disable http.proxyStrictSSL. Instead, provide the root and intermediate certificates to the OS and Node environment:
- Windows: Open
certmgr.msc, navigate to Trusted Root Certification Authorities > Certificates, and import your corporate proxy root certificate (.ceror.crt). - macOS: Open Keychain Access, drag your corporate CA
.peminto the System keychain, double-click the certificate, and set Trust to Always Trust. - Node Runtime Fallback: Some extension background processes bypass the OS store. Set the system-wide environment variable:
Point this to a PEM file containing the full corporate CA chain (Root CA + Intermediate CAs).NODE_EXTRA_CA_CERTS=/path/to/corporate-ca-bundle.pem
Step 3: watsonx Extension Parameters and DPI Latency
In VS Code settings, search for watsonx or Z Open Editor:
- Service URL: For SaaS, leave the default IBM Cloud endpoint. For on-premises IBM Software Hub or Z Refactoring Assistant, input your internal URL (e.g.,
https://watsonx.internal.corp:8443). - Certificate Path: If your extension supports a direct certificate parameter (such as Refactoring Assistant Server: Certificate), specify the absolute path to
corporate-ca-bundle.pem. - Request Timeout: Deep Packet Inspection by corporate proxies adds between 200 ms and 1500 ms of latency per request. AI token streaming can hit default HTTP client socket timeouts. Increase the extension timeout setting from 30 seconds to 120 seconds to prevent premature disconnections during multi-turn refactoring generations.
2. Configuring Eclipse IDE for IBM watsonx Code Assistant
Eclipse requires configuring both the Eclipse workspace network layer and the underlying Java Virtual Machine (JVM).
Step 1: Network Preferences in Eclipse
- Go to Window > Preferences (or Eclipse > Settings on macOS).
- Navigate to General > Network Connections.
- Change Active Provider from
DirectorNativeto Manual. 365Finds strongly advises usingManualbecauseNativefrequently fails to capture non-standard PAC (Proxy Auto-Config) scripts or corporate credentials under Linux and Windows. - Select HTTPS, click Edit, and enter:
- Host:
proxy.yourcompany.com - Port:
8080 - Check Requires Authentication and supply credentials if applicable.
- Host:
- In the Proxy Bypass table, add internal host patterns that must not route through the external proxy:
localhost127.0.0.1*.internal.corp(your on-premises IBM Software Hub domain)
Step 2: Importing the Corporate CA into Java Truststore (cacerts)
To resolve PKIX path building failed, import the enterprise root certificate into the Java runtime running Eclipse.
Locate your Eclipse JDK installation and run keytool:
keytool -importcert -trustcacerts \
-alias "corporate-proxy-ca" \
-file "/path/to/corporate-root-ca.crt" \
-keystore "$JAVA_HOME/lib/security/cacerts" \
-storepass changeit \
-noprompt
(If using macOS or Linux, prepend sudo to modify $JAVA_HOME/lib/security/cacerts.)
Step 3: Eclipse VM Arguments for Custom Truststore and mTLS
If your enterprise workstation policies prevent modifying the default JDK cacerts, or if your security group provisions a dedicated truststore and client keystore for mutual TLS (mTLS), configure eclipse.ini directly.
Open eclipse.ini (located in the Eclipse installation root or inside the .app bundle on macOS) and append the following system properties under the -vmargs line:
-vmargs
-Djavax.net.ssl.trustStore=/opt/certs/corporate-truststore.jks
-Djavax.net.ssl.trustStorePassword=CustomPassword123!
-Djavax.net.ssl.trustStoreType=JKS
-Djavax.net.ssl.keyStore=/opt/certs/developer-client-cert.p12
-Djavax.net.ssl.keyStorePassword=ClientKeyPassword123!
-Djavax.net.ssl.keyStoreType=PKCS12
-Djdk.http.auth.tunneling.disabledSchemes=""
Note on Windows-specific shortcuts: On corporate Windows machines managed by Active Directory, you can point the JVM directly to the Windows Certificate Store by adding:
-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
This forces Java to read certificates distributed by Group Policy without running keytool manually.
3. Mutual TLS (mTLS) and IBM Software Hub Architecture
When connecting IBM watsonx Code Assistant to private enterprise instances rather than public IBM Cloud, corporate architecture teams frequently implement zero-trust ingress gateways requiring client certificate authentication.
| Component | VS Code Architecture | Eclipse IDE Architecture |
|---|---|---|
| Proxy Routing | settings.json (http.proxy) | General > Network Connections (Manual) |
| Truststore Injection | OS Truststore + NODE_EXTRA_CA_CERTS | keytool into cacerts or -Djavax.net.ssl.trustStore |
| mTLS Client Cert | Extension SSL config / Local Proxy wrapper | eclipse.ini (-Djavax.net.ssl.keyStore) |
| Timeout Handling | Extension timeout setting (120s) | JVM socket timeout / plugin settings |
For mTLS in VS Code, if the watsonx extension lacks a direct clientCert property, the production pattern recommended by 365Finds is terminating mTLS on a local loopback proxy (like Envoy or Stunnel) running on 127.0.0.1, which injects the developer's client certificate and forwards traffic upstream through the corporate proxy.
4. Operational Verification
To confirm your configuration without generating billable code generation tokens:
- Verify IAM Token Generation:
Test connectivity against the IBM Cloud IAM endpoint from your command line using your injected certificate:
curl -x http://proxy.yourcompany.com:8080 \ --cacert /path/to/corporate-ca-bundle.pem \ -X POST "https://iam.cloud.ibm.com/identity/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey=YOUR_API_KEY" - Verify IDE Logs:
- In VS Code: Open Output panel (
Ctrl+Shift+U) and switch the dropdown to IBM watsonx Code Assistant or Log (Window). A successful handshake displays HTTP 200 responses for token exchanges. - In Eclipse: Open the Error Log view (
Window > Show View > Other > General > Error Log). Verify thatPKIX path building failedentries cease upon plugin initialization.
- In VS Code: Open Output panel (
Testing with an IAM authentication curl command confirms your network path and certificate chain are intact before debugging IDE-specific extension states.