File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11idp /idp_conf.py
22idp2 /idp.subject
3- idp2 /idp_conf .py
3+ idp2 /test_idp_conf .py
44sp /outstanding
55sp /sp_conf.py
66server.crt
Original file line number Diff line number Diff line change 77import re
88import time
99
10- from Cookie import SimpleCookie
10+ # from Cookie import SimpleCookie
1111from hashlib import sha1
12- from urlparse import parse_qs
12+ # from urlparse import parse_qs
1313from cherrypy import wsgiserver
14- from cherrypy .wsgiserver import ssl_pyopenssl
14+ #from cherrypy.wsgiserver import ssl_pyopenssl
15+ from cherrypy .wsgiserver .ssl_builtin import BuiltinSSLAdapter
16+ from future .backports .http .cookies import SimpleCookie
17+ from future .backports .urllib .parse import parse_qs
1518
1619from saml2 import BINDING_HTTP_ARTIFACT
1720from saml2 import BINDING_URI
@@ -1088,10 +1091,13 @@ def application(environ, start_response):
10881091
10891092 _https = ""
10901093 if CONFIG .HTTPS :
1091- SRV .ssl_adapter = ssl_pyopenssl .pyOpenSSLAdapter (CONFIG .SERVER_CERT ,
1092- CONFIG .SERVER_KEY ,
1093- CONFIG .CERT_CHAIN )
1094- _https = " using SSL/TLS"
1094+ https = "using HTTPS"
1095+ # SRV.ssl_adapter = ssl_pyopenssl.pyOpenSSLAdapter(
1096+ # config.SERVER_CERT, config.SERVER_KEY, config.CERT_CHAIN)
1097+ SRV .ssl_adapter = BuiltinSSLAdapter (CONFIG .SERVER_CERT ,
1098+ CONFIG .SERVER_KEY ,
1099+ CONFIG .CERT_CHAIN )
1100+
10951101 logger .info ("Server starting" )
10961102 print ("IDP listening on %s:%s%s" % (HOST , PORT , _https ))
10971103 try :
You can’t perform that action at this time.
0 commit comments