I'm seeing the same problem, are you sure artifactory uses the standard java
cacerts?

I get this error from the "Test" button when trying to configure a remote
repository like https://private.example.com/maven/repository/snapshots/
following instructions
https://www.jfrog.com/confluence/display/RTF/Configuring+Repositories.

Connection failed with exception: sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

So I tried adding it to the java cacerts:

ENV JAVA_CACERTS /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts 
ADD MYCOMPANY_CA.pem ./ 
RUN keytool -noprompt -storepass changeit -keystore ${JAVA_CACERTS} -import
-file MYCOMPANY_CA.pem -alias MYCOMPANY_CA 

Unfortunately, artifactory still doesn't accept my private repo. I verified
a simple java URL("https://private.example.com/maven/repository/snapshots/";)
request fails to validate before adding my private CA, and it works after,
so I guess I don't understand what cacerts artifactory is using.



--
View this message in context: 
http://forums.jfrog.org/Artifactory-plugin-in-jenkins-tp7580196p7580290.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to