While checking out a repository in image dotnet-30-jenkins-slave-rhel7, an error occurs: "Error setting certificate verify locations".

Solution Verified - Updated -


When building an application using Jenkins and the dotnet-30-jenkins-slave-rhel7 image, the following error occurs while checking out an external repository:

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/repository/_git/tagger-deal-translator +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stderr: fatal: unable to access 'https://example.com/repository/_git/tagger-deal-translator': error setting certificate verify locations:
  CAfile: /opt/rh/rh-dotnet30/root/etc/pki/tls/certs/ca-bundle.crt
  CApath: none


  • Red Hat OpenShift Container Platform (OCP)
    • 4.x
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In