You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to configure corporate certificate authority, extension throws sun.security.provider.certpath.SunCertPathBuilderException #1029
We are behind a corporate network security system that can and does intercept HTTPS and opt to use its own certificate authority, not the official ones common to HTTPS services their owners deploy. This security service is an aggressive proxy, so the local proxy settings or TLS configurations are not effective unless I ignore all certificate errors in VS Code. Network settings ensure I use the CA for traffic intercept. Personally, disabling all cert checks is beyond my risk appetite and I do not want to do that. This extension does not seem to have a documented way to load certificate authorities and it does not seem to use the macOS operating system default (Keychain), as other VS Code components do not have this issue. I only see the below are on any XML processing instruction, <?xml-model?>, xsi:schemaLocation, and DOCTYPE URLs. They all have the following error.
Error while downloading 'https://qualysguard.qg2.apps.qualys.com/scan-1.dtd' to '/Users/me/.lemminx/cache/https/qualysguard.qg2.apps.qualys.com/scan-1.dtd' : '[sun.security.provider.certpath.SunCertPathBuilderException] unable to find valid certification path to requested target'.
Is there a system to relax this? Would a PR be welcome to fix this issue? It frequently impacts my development team. In either case, thanks again for excellent software. I have been using this extension reliable for a long while, and I very much appreciate the prodiguous effort that went into it.
I experienced this issue as well. I found a workaround: you can download the schema into the lemminx cache manually. For example, for http://maven.apache.org/xsd/maven-4.0.0.xsd: ~/.lemminx/cache/maven.apache.org/xsd/maven-4.0.0.xsd
should work as long as you can curl the schema or view it in a browser.
I also have this issue. In windows with devcontainer I've been able to get it working by setting xml.java.home to a JDK21 that has the correct certificate and xml.server.preferBinary: false. However when I run the same devcontainer and the same settings in WSL then it insist on using the binary server which I have not been able to find a way to provision with CA certificates. The system running in the devcontainer has the needed CA certificates installed, so using the system certificates would solve the issue for me.
Activity
Genfood commentedon May 6, 2025
We do have the same problem currently, did you get it working and could share some valuable information with us?
datho7561 commentedon May 6, 2025
If you are using Java, it seems there are command line arguments to configure Java to use Keychain.
eg. add this to
settings.jsonI haven't test this though.
If you aren't using Java, maybe the following works?
drewma2k commentedon Aug 20, 2025
I experienced this issue as well. I found a workaround: you can download the schema into the lemminx cache manually. For example, for
http://maven.apache.org/xsd/maven-4.0.0.xsd:~/.lemminx/cache/maven.apache.org/xsd/maven-4.0.0.xsdshould work as long as you can curl the schema or view it in a browser.
sverkera commentedon Sep 3, 2025
I also have this issue. In windows with devcontainer I've been able to get it working by setting xml.java.home to a JDK21 that has the correct certificate and xml.server.preferBinary: false. However when I run the same devcontainer and the same settings in WSL then it insist on using the binary server which I have not been able to find a way to provision with CA certificates. The system running in the devcontainer has the needed CA certificates installed, so using the system certificates would solve the issue for me.