Using developer edition SonarQube 9.5 (build56709) and Sonarscanner for msbuild 5.7.0. I have installed a wildcard certificate which belongs to our company with root CA being certum. I have installed the certificates on the %JAVA_HOME%/lib/security/cacerts files successfully using following command:
keytool -import -v -trustcacerts -alias Sonarqube -file bitifeye.com.cer -keystore cacerts
I tried the sslpoke SSLPoke from this site and it works fine
with successfully connected message.
I tried adding SONAR_SCANNER_OPTS to the prestart of scan and sonarscanner still fails to authenticate.
set SONAR_SCANNER_OPTS=-Djavax.net.ssl.trustStore="C:\Program Files\Eclipse Adoptium\jdk-188.8.131.52-hotspot\lib\security\cacerts" -Djavax.net.ssl.trustStorePassword="changeit"
Additional Info: Sonarqube is hosted on a VM and HTTPS is being done by IIS reverse proxy on the same VM. The https url works fine while trying to use from browsers. The scanner is being run on the same VM as well.