mirror of
https://github.com/openSUSE/osc.git
synced 2025-06-28 05:34:50 +02: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:
|
try:
|
||||||
import oscssl
|
import oscssl
|
||||||
oscssl.myHTTPSConnection.appname = 'osc'
|
oscssl.myHTTPSConnection.appname = 'osc'
|
||||||
|
oscssl.myProxyHTTPSConnection.appname = 'osc'
|
||||||
from M2Crypto import m2urllib2
|
from M2Crypto import m2urllib2
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
print e
|
||||||
|
@ -272,7 +272,7 @@ def verify_certificate(connection):
|
|||||||
# Maybe it changed to something valid.
|
# Maybe it changed to something valid.
|
||||||
if not connection.sock.verify_ok():
|
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():
|
if tc.is_known():
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user