jfrog / jenkins-jfrog-plugin

Easy integration between Jenkins and the JFrog Platform.
https://github.com/jfrog/jenkins-jfrog-plugin
Apache License 2.0
39 stars 17 forks source link

Can jfrog plugin integrate OSX jenkins nodes with artifactory server using certifacates signed by an internal CA? #83

Open alexkara86 opened 9 months ago

alexkara86 commented 9 months ago

How can we help?

Environment jenkins server version: 2.401.3 jfrog plugin for jenkins version: 1.5.0 osx version: Ventura 13.4 jdk version: openjdk version "11.0.20" 2023-07-18

Error The following error was received while trying to encrypt your password: Get "/artifactory/api/security/encryptedPassword": x509: certificate signed by unknown authority

I have added Artifactory server's internally signed certificate in the machines keychain, in the keystore of the JDK used by the jenkins node and also in ~/.jfrog/security/certs as its documented by jfrog.

When I run the jf command directly from the node's terminal I face no problem. When I run the same command from a jenkins pipeline using the plugin I get the error I copied above.

Can you please let me know if this plugin as is supports certificates signed by an internal CA ? Its interesting that for us its working fine for windows and ubuntu nodes but not for macOS. Is it a limitation that only affects macOS nodes?