Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
1386615 - rhn-custom-info should not require CA cert for non-https se…
Browse files Browse the repository at this point in the history
…rver
  • Loading branch information
eherget committed Dec 6, 2016
1 parent aed72d7 commit e4dae1b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/tools/rhncustominfo/rhn-custom-info.py
Expand Up @@ -75,11 +75,12 @@ def create_server_obj(server_url):
if lang:
server.setlang(lang)

for ca_cert in ca_certs:
if not os.access(ca_cert, os.R_OK):
raise "could not find cert %s" % ca_cert
if server_url.startswith("https"):
for ca_cert in ca_certs:
if not os.access(ca_cert, os.R_OK):
raise "could not find cert %s" % ca_cert

server.add_trusted_cert(ca_cert)
server.add_trusted_cert(ca_cert)

return server

Expand Down

0 comments on commit e4dae1b

Please sign in to comment.