Skip to content

Instantly share code, notes, and snippets.

@jefrnc
Created February 13, 2020 13:19
Show Gist options
  • Save jefrnc/c654519338d093d73281d984d71d29df to your computer and use it in GitHub Desktop.
Save jefrnc/c654519338d093d73281d984d71d29df to your computer and use it in GitHub Desktop.
Maven sonar plugin: trust self-signed certificate
#[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project data.model: Unable to execute SonarQube: Fail to get bootstrap index from server: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
keytool -import -v -trustcacerts -alias mySonarServer -file sonarServer.crt -keystore cacerts
#Where cacerts is the one from the JRE installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment