Issue
I'm using Maven and Artifactory, and want to resolve pom.xml dependencies with an http connection. Therefore I use Maven wagon's flags as specified here.
I wonder how come I still get the error if I'm telling Maven to use insecure ssl connection.
Solution
According to the documentation:
maven.wagon.http.ssl.insecure = true/false (false by default), enable/disable relaxed check of public key certificates (e.g. self-signed ones). Relaxed check means that any chain with 1 or more certificates will be considered valid if all the certificate dates in the chain are valid (dates check can be overridden as well - see below).
Relaxed checks doesn't mean there will be no checks at all ot it will switch to http without tls. From the message I understand there is no certificate path from the certificate presented by the server to any of the certs included in the truststore. You are likely missing some relevant cert in your truststore.
Answered By - automatictester