Connect to SonarQube using client certificate

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: 6.10.0.57359
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • Connected to SonarQube (and which version): Community 9.7.1

And a thorough description of the problem / question:

I have created my user token in SonarQube. When I click on connect from visual studio, it prompts me for server and token. I enter the server (with https) and the token. I’m getting a Bad Request 400. I suspect it is because we are using client certificates to connect to the server.

When I connect via a browser it prompts me for a certificate to use and it works fine after selection, after going through github of course.

I get this in my output window of VS.

Connecting to SonarQube server: https://sonar.$redacted$.net/
Connecting to SonarQube server: Validating credentials
Connecting to ‘https://sonar.$redacted$.net/’.
SonarQube request failed: Response status code does not indicate success: 400 (Bad Request).
Connecting to SonarQube server: Failed
Disconnecting…

How do I go about setting my client certificate to connect?