Skip to content

Commit

Permalink
give a hint which package to install to get CA certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 26, 2018
1 parent d0213c6 commit 5e3fe8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/conf.py
Expand Up @@ -547,10 +547,10 @@ def retry_http_basic_auth(self, host, req, realm):
capath = i
break
if not cafile and not capath:
raise oscerr.OscIOError(None, 'No CA certificates found')
raise oscerr.OscIOError(None, 'No CA certificates found. (You may want to install ca-certificates-mozilla package)')
ctx = oscssl.mySSLContext()
if ctx.load_verify_locations(capath=capath, cafile=cafile) != 1:
raise oscerr.OscIOError(None, 'No CA certificates found')
raise oscerr.OscIOError(None, 'No CA certificates found. (You may want to install ca-certificates-mozilla package)')
opener = m2urllib2.build_opener(ctx, oscssl.myHTTPSHandler(ssl_context=ctx, appname='osc'), HTTPCookieProcessor(cookiejar), authhandler, proxyhandler)
else:
handlers = [HTTPCookieProcessor(cookiejar), authhandler, proxyhandler]
Expand Down

0 comments on commit 5e3fe8b

Please sign in to comment.