Sonarscanner not working due to certificate issue

Good Morning,

I am having an issue with SonarScanner for .NET using MSBuild, my sonarqube is working with a self-signed certificate and when I run the scan I get an error code “The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot”

I try the to fix it with the “update-ca-certificates” method and now the error I get is “The remote certificate is invalid according to the validation procedure: Remotecertificatenamemismatch”

How could I resolve this? Thanks you!


Welcome to the community!

Sorting out certs is a little out of scope for us, but this SO answer might help.