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.