ansible-builder fails with SSL verification error when connecting to internal Automation Hub

Solution Verified - Updated -

Issue

  • When building Execution Environments via ansible-builder, the process fails with an SSL: CERTIFICATE_VERIFY_FAILED error because it cannot verify the certificate of the internal Automation Hub

    [1/3] STEP 9/9: RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path "/usr/share/ansible/collections"
    [WARNING]: Skipping Galaxy server http://xx.xx.xx.xx. Got an unexpected error
    when getting available versions of collection community.general: Unknown error
    when attempting to call Galaxy at 'http://xx.xx.xx.xx/api': <urlopen error
    [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
    issuer certificate (_ssl.c:1129)>
    ERROR! Unknown error when attempting to call Galaxy at 'http://xx.xx.xx.xx/api': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat® Ansible Automation Platform >= 2.1

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