Unable to read truststore error since macOS Sonar Scanner CLI since 7.0.0.4796

@Fabrice_P Can you please run:

keytool -v -list -keystore /var/jenkins_cacerts/cacerts.jks

and check if you have entries that are different than trustedCertEntry

In my case, I have:

Type de fichier de clés : JKS
Fournisseur de fichier de clés : SUN

Votre fichier de clés d'accès contient 166 entrées

Nom d'alias : debian:ac_raiz_fnmt-rcm.pem
Date de création : 11 févr. 2025
Type d'entrée : trustedCertEntry
[...]

And all 166 entries are of type trustedCertEntry. I suspect there is something else in your cacerts that is causing the issue (for more technical details, see the issue I reported to BouncyCastle)

(If I could create a keystore reproducing your issue, that would be much simpler to fix it.)