When running a private MAVEN repository via https with self-signed certificate in my case Archiva. You will run into a error when trying to upload/download artifacts.
That solved all my problems.
The problem is you do not have the certificate in your trusted keystore. Your can fix this by importing it using this tool InstallCert. It takes arguments
It simply copies all the default trusted certificates in jre/lib/security/cacerts and pulls the self-signed certificate from the specified host, into a new file called jssecacerts. This file then needs to be copied to /jre/lib/security/ folder. When java tries to find trust material it will look in order at the following locations:
- system property javax.net.ssl.trustStore
- java-home/lib/security/cacerts (shipped by default)
For more info read in the JSSE Reference Guide.