Test a SSL connection from Jenkins

Issue

Jenkins can not connect to a server using SSL connection.

Environment

  • CloudBees Jenkins Enterprise > 1.596.1.1
  • Jenkins LTS > 1.596.1
  • Jenkins > 1.600
  • workflow-job > 1.8
  • only run on unix agent

Resolution

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

Create the Pipeline Job

configure

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

Run the job, set target host to host name.
view
stage1
stage2
consoleOutput

when job finish need to review console output, the most common issues are :

JDK 8 security changes

JDK 8 Security Enhancements
JDK 8 use TSL 1.2 as default

JDK 8 cipher changes

JDK 8 Supported Cipher

JDK 8 disable SSLv3

JDK 8 Protocols
Enable SSLv3

References

Debugging SSL/TLS Connections
How to analyze Java SSL errors

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.