Skip to content

Commit

Permalink
SLVSCODE-838 send correct default value for SSL trust store path
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Aug 29, 2024
1 parent b3668c2 commit 0d1ee6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ public boolean checkServerTrusted(List<X509CertificateDto> chain, String authTyp
} catch (CertificateEncodingException | IndexOutOfBoundsException e) {
logOutput.errorWithStackTrace("Certificate encoding is malformed, SHA fingerprints will not be displayed.", e);
}
var actualSonarLintUserHome = SonarLintUserHome.get();
var pathToActualTrustStore = SonarLintUserHome.get().resolve("ssl/truststore.p12");
var confirmationParams = new SonarLintExtendedLanguageClient.SslCertificateConfirmationParams(
untrustedCert == null ? "" : untrustedCert.getSubjectX500Principal().getName(),
untrustedCert == null ? "" : untrustedCert.getIssuerX500Principal().getName(),
untrustedCert == null ? "" : untrustedCert.getNotBefore().toString(),
untrustedCert == null ? "" : untrustedCert.getNotAfter().toString(),
sha1fingerprint,
sha256fingerprint,
actualSonarLintUserHome.toString()
pathToActualTrustStore.toString()
);

return client.askSslCertificateConfirmation(confirmationParams).join();
Expand Down

0 comments on commit 0d1ee6e

Please sign in to comment.