"import read failed(0)" error while trying to register a new system using bootstrap script
Issue
- When trying to register some servers to Red Hat Satellite using bootstrap script, it is failing with the following message:
error: RHN-ORG-TRUSTED-SSL-CERT: import read failed(0).
- When use "set -x" in the bootstrap script and run it again get the following messages:
+ for GPG_KEY in '$(echo "$ORG_GPG_KEY" | tr "," " ")'
+ rm -f RHN-ORG-TRUSTED-SSL-CERT
+ /usr/bin/wget -q -r -nd --no-check-certificate https://satellite.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT
++ LC_ALL=C
++ rpm -q --queryformat '%{version}' up2date
++ sed -e 's/\..*//g'
+ res='package up2date is not installed'
+ '[' 'xpackage up2date is not installed' == x2 ']'
+ rpm --import RHN-ORG-TRUSTED-SSL-CERT
error: RHN-ORG-TRUSTED-SSL-CERT: import read failed(0).
+ echo
+ echo '* attempting to install corporate public CA cert'
* attempting to install corporate public CA cert
+ '[' 0 -eq 1 ']'
+ rm -f RHN-ORG-TRUSTED-SSL-CERT
+ /usr/bin/wget -q -r -nd --no-check-certificate https://satellite.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT
+ mv RHN-ORG-TRUSTED-SSL-CERT /usr/share/rhn/
+ '[' yum == zypper ']'
+ echo
Environment
- Red Hat Satellite
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
