diff --git a/osc/conf.py b/osc/conf.py index 53a5f34d..5c12dfb3 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -299,6 +299,7 @@ def init_basicauth(config): try: import oscssl oscssl.myHTTPSConnection.appname = 'osc' + oscssl.myProxyHTTPSConnection.appname = 'osc' from M2Crypto import m2urllib2 except Exception, e: print e diff --git a/osc/oscssl.py b/osc/oscssl.py index bf071ac6..749c96fe 100644 --- a/osc/oscssl.py +++ b/osc/oscssl.py @@ -272,7 +272,7 @@ def verify_certificate(connection): # Maybe it changed to something valid. if not connection.sock.verify_ok(): - tc = TrustedCertStore(connection.getHost(), connection.getPort(), 'generic', cert) + tc = TrustedCertStore(connection.getHost(), connection.getPort(), connection.appname, cert) if tc.is_known():