Skip to content

Commit

Permalink
misc bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Crafts committed Mar 30, 2016
1 parent eec126f commit 612af27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion etc/redhat-access-insights.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down Expand Up @@ -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 <[email protected]> - 1.0.8-13
- Certificiate bugfix

* Thu Mar 24 2016 Jeremy Crafts <[email protected]> - 1.0.8-12
- Fix failed QE bugs

* Tue Mar 22 2016 Jeremy Crafts <[email protected]> - 1.0.8-11
- Resolves: bz1308916, bz1308942

Expand Down
6 changes: 5 additions & 1 deletion redhat_access_insights/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 612af27

Please sign in to comment.