mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-29 18:40:03 +01:00
appname should be osc for ssl support
This commit is contained in:
parent
aee78f6150
commit
f2f948388e
@ -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():
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user