Since Version 3.6.0 i am getting the following error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I also did the SSLPoke check which worked out well.
I think the error is connected to the newly introduced “Connected mode”.
When switching back to v3.5.4, everything works fine…
Thank you for your efforts and the awesome product.
Hello, welcome to the community! And thanks for your feedback.
Connected mode is not really a new feature however what is new in 3.7 is that we now embed our own JRE (on Windows, Linux and macOS).
My hypothesis is that you ran the SSLPoke test with the “public” JRE that is installed on your machine and that probably has some internal root certificate (or a different set of enabled crypto algorithms).
For investigation purposes, would it be possible for you to run the SSLPoke test with the extension’s JRE instead? On Windows, it should be located somewhere like %USERPROFILE%\.vscode\extensions\sonarsource.sonarlint-vscode-3.7.0-win32-x64\jre\17.0.3-win32-x86_64.tar\bin\java.exe.
One possible workaround would be to download the “Universal” VSIX from the extension page and use your machine’s public JRE instead of the one embedded in the Windows-specific VSIX.
You can check out another community post on the same topic. We have a ticket in our backlog to make sure that SonarLint honors the sonarlint.ls.javaHome, even when the JRE is embedded. The ticket has a high priority and should be fixed soon, but meanwhile, as a workaround, you can follow the instructions specified here. I hope this helps
I’m happy to let you know that SonarLint for VSCode v3.11 is released and starting from this version, the sonarlint.ls.javaHome setting will be respected on all platforms, meaning that you can specify your own Java Runtime and not use the one embedded by the extension.