-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.516.2
Jenkins P4 plugin 1.17.2
Red Hat Enterprise Linux 10.0
Perforce Server P4D/LINUX26X86_64/2023.2/2723144 (2025/02/19)
Creating a Perforce Password Credential and testing it doesn't work when running a Jenkins instance on RHEL 10.0. The issue does not occur on RHEL 9.6 or Ubuntu 24.04. The error message reads:
Unable to connect to: p4javassl://perforce.domain.com:1666
Error occurred during the SSL handshake: invalid SSL session
Steps for recreating the issue:
dnf upgrade
dnf install java-21-openjdk
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
dnf install Jenkins
systemctl daemon-reload
systemctl enable Jenkins
systemctl stop firewalld [or open port 8080]
http://10.10.10.10:8080/
Log in with password from: cat /var/lib/jenkins/secrets/initialAdminPassword
Click “Select plugins to install”
Click “None”
Search for P4, select and install
Click “Skip and continue as admin”
Click “Not now”
Click “Start using Jenkins”
Click the Cogwheel with the tooltip “Manage Jenkins” in the upper right corner
Click “Credentials”
Click “(global)”
Click “+ Add Credentials”
Select Kind “Perforce Password Credential”
Enter “P4Port” : perforce.domain.com:1666
Check “SSL Connection”
Enter “Trust”: <INSERT VALID SERVER FINGERPRINT HERE>
Enter “Username”: someuser
Enter “Password”: somepassword
[Since the connection fails before authentication even starts, user/password does not need to exist.]
Click “Test Connection” in the bottom right corner.
Result:
Unable to connect to: p4javassl://perforce.domain.com:1666
Error occurred during the SSL handshake: invalid SSL session
Please note that I have anonymized the perforce server hostname and IP.