Jenkins can not connect to a server using SSL connection.
- CloudBees Jenkins Enterprise > 1.596.1.1
- Jenkins LTS > 1.596.1
- Jenkins > 1.600
- workflow-job > 1.8
- only run on unix agent
We need to do some test to diagnose what is wrong with SSL connection, so, here are the instructions to build a job to test SSL configuration in both sides, it is a Pipeline job from a project in github (https://github.com/kuisathaverat/TestSSLServer.git), this job need a String parameter named targetHost.
Create the Pipeline Job
Configure job as “This build is parameterized” and add String targetHost parameter. Configure Pipeline as “Groovy CPS DSL from SCM” , set as git SCM and set repository URL to “https://github.com/kuisathaverat/TestSSLServer.git”
Run the job, set target host to host name.
when job finish need to review console output, the most common issues are :