mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-02 13:43:38 +02:00
appname should be osc for ssl support
This commit is contained in:
@@ -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
|
||||
|
@@ -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():
|
||||
|
||||
|
Reference in New Issue
Block a user