javax.net.ssl.SSLPeerUnverifiedException hostname git not verified(no certificates)

Jenkins setup:

Hi Team,

We have upgraded our Jenkins to 2.462.2 from 2.303 and we have setup all the required plugins and the configurations. We are facing one intermittent issue for the builds we trigger.

Build is failing and says
“javax.net.ssl.SSLPeerUnverifiedException hostname git not verified(no certificates)”

We are facing one more issue with the user credentials. We have added the required credentials but some times it fails saying
“Invalid scan credentials for the user xxx”

Both are issues are intermittent. some builds run fine but most of the builds are failing with these errors.

Really appreciate your help here as we are stuck with this issue.

Thanks

I think that is suggesting that the remote host with the hostname “git” did not respond to the request for the SSL certificate. I think that means you’re probably using https to access the remote repository. Check the logs of the web server on the remote host with the hostname “git”. They may point you to the failure.

We ran into the same issues after upgrading Jenkins. For the SSLPeerUnverifiedException, it’s likely due to missing or untrusted SSL certificates Make sure the Git server’s SSL/TLS certificate is valid and trusted by the Jenkins server, you may need to import the cert into the JVM truststore. As for the “Invalid scan credentials,” try re-saving the credentials and double-check permissions—they sometimes don’t apply correctly after upgrades. Restarting Jenkins after updates also helped stabilize things for us.