philicious/spacewalk-scripts

unhandled exception occured:

nephilim1973 opened this issue · 2 comments

# ./debianSync.py --username myuser --password 'mypass' --channel 'ubuntu-trusty' --url 'http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/'
INFO: Repo URL:  http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/
INFO: Repo root: http://de.archive.ubuntu.com/ubuntu/
INFO: Packages in repo: 8567
INFO: Packages synced: 0
INFO: Packages to sync: 8567
INFO: 1/8567: account-plugin-aim_3.8.6-0ubuntu9_amd64.deb
ERROR: rhnpush [ rhnpush -c ubuntu-trusty -u myuser -p mypass /tmp/account-plugin-aim_3.8.6-0ubuntu9_amd64.deb ] failed: ('', '\nERROR: unhandled exception occurred: (Certificate file /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT is not accessible).\n')


# ls -al /usr/share/rhn/RHN*
-rw-r--r--. 1 root root 1757 Sep 24  2015 /usr/share/rhn/RHN-GPG-KEY
-rw-r--r--. 1 root root 8865 Sep 24  2015 /usr/share/rhn/RHNS-CA-CERT

Trying on CentOS 7

How I can generate the file RHN-ORG-TRUSTED-SSL-CERT ?

Regards.

rpm -i /root/ssl-build/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm

Solved.

@nephilim1973 you could also curl it from your-spacewalk.com/pub/RHN-ORG-TRUSTED-SSL-CERT