I have set up a sonarqube instance via docker and I am using Caddyserver as a reverse proxy.
Unfortunately I am unable to execute the sonar scanner.
I get following error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
There are quite a lot of similar questions out there and most of them say, that you have to import the servers certificate to the client.
I am not sure why I would need to do that for a trusted certificate.
I can connect to my sonarqube instance via chrome and the connection is marked as secure and the certificate as valid.
How is it possible that Chrome says my connection is valid but java doesn't?