diff --git a/etc/redhat-access-insights.spec b/etc/redhat-access-insights.spec index 5964cae..d6c7514 100644 --- a/etc/redhat-access-insights.spec +++ b/etc/redhat-access-insights.spec @@ -4,7 +4,7 @@ Name: redhat-access-insights Summary: Uploads Insights information to Red Hat on a periodic basis Version: 1.0.8 -Release: 12%{?dist} +Release: 13%{?dist} Source0: https://github.com/redhataccess/insights-client/archive/redhat-access-insights-%{version}.tar.gz Epoch: 0 License: GPLv2+ @@ -83,6 +83,12 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT /usr/share/man/man5/*.5.gz %changelog +* Mon Mar 30 2016 Jeremy Crafts - 1.0.8-13 +- Certificiate bugfix + +* Thu Mar 24 2016 Jeremy Crafts - 1.0.8-12 +- Fix failed QE bugs + * Tue Mar 22 2016 Jeremy Crafts - 1.0.8-11 - Resolves: bz1308916, bz1308942 diff --git a/redhat_access_insights/connection.py b/redhat_access_insights/connection.py index 94ed455..c594c63 100644 --- a/redhat_access_insights/connection.py +++ b/redhat_access_insights/connection.py @@ -293,7 +293,11 @@ def _test_openssl(self): sys.exit(1) ctx = SSL.Context(SSL.TLSv1_METHOD) if type(self.cert_verify) is not bool: - ctx.load_verify_locations(self.cert_verify, None) + if os.path.isfile(self.cert_verify): + ctx.load_verify_locations(self.cert_verify, None) + else: + logger.error('Error: Invalid cert path: %s' % self.cert_verify) + sys.exit(1) ctx.set_verify(SSL.VERIFY_PEER, self._verify_check) ssl_conn = SSL.Connection(ctx, sock) ssl_conn.set_connect_state()