SonarLint VSCode handshake failure

  • Operating system: Windows 10
  • SonarLint plugin version: v3.20.2
  • Programming language you’re coding in: N/A
  • Is connected mode used:
    • Connected to SonarQube Community Edition Version 9.7.1:


I have an issue setting up Sonarlint to connect to Sonarqube server through HTTPS.

I’m getting handshake failure error, please see logs below: Received fatal alert: handshake_failure
	at java.base/
	at java.base/
	at java.base/
	at java.base/$AlertConsumer.consume(
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at org.apache.hc.core5.reactor.ssl.SSLIOSession.doUnwrap(
	at org.apache.hc.core5.reactor.ssl.SSLIOSession.doHandshake(
	at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$100(
	at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(
	at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(
	at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(
	at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(
	at java.base/

It seems that for some reason java doesn’t send the certificate to the server:

[stderr]|DEBUG|14|httpclient-dispatch-1|2023-08-28 15:54:57.622 EEST||Consuming ServerHelloDone handshake message (
[stderr] <empty>
[stderr] )
[stderr]|DEBUG|14|httpclient-dispatch-1|2023-08-28 15:54:57.622 EEST||No X.509 certificate for client authentication, use empty Certificate message instead
[stderr]|DEBUG|14|httpclient-dispatch-1|2023-08-28 15:54:57.623 EEST||Produced client Certificate handshake message (
[stderr] "Certificates": <empty list>
[stderr] )

And these are vmargs that I use:

    "": ",handshake\\path\\to\\Certificates\\cert.p12\\java\\jdk-11.0.19+7lib\\security\\cacerts",

Does anyone had similar issue which is already resolved and could pointing me to the right direction?

Note! I’m using the same certificate for Maven to access Nexus and it is working without any issues.

Best Regards!

Hi @n00lz

I see that you are using client certificates to connect to your SonarQube server. It was previously not intentionally supported by SonarLint (it was working “by luck” when using Java properties,, …).

With the latest release, we have changed our HTTP Client, and those properties aren’t working anymore. The good point is that we are now officially supporting SSL client certificates.
So you have 2 options:

  • put your certificate in the SonarLint default keystore location (~/.sonarlint/ssl/keystore.p12). You can create a pkcs12 keystore with the password sonarlint and restart VSCode.
  • or use the new SonarLint-specific properties to point SonarLint to your existing keystore: replace "": "\\path\\to\\Certificates\\cert.p12"
    "": "-Dsonarlint.ssl.keyStorePath=C:\\path\\to\\Certificates\\cert.p12 -Dsonarlint.ssl.keyStorePassword=changeit" then restart VSCode

As a side note, SonarLint will also maintain its own truststore from now on, so you can probably remove the and properties (SonarLint will ask you if you trust the server certificate the first time you connect).

Let me know how it goes.


Thank you very much for the information, it seems that it’s working now.

I’ve used second option “point SonarLint to your existing keystore” and I was able to connect to Sonarqube server.

Best Regards!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.