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

Solution Verified - Updated -

Issue

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:
stdout: 
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

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content