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 1
1
idp /idp_conf.py
2
2
idp2 /idp.subject
3
- idp2 /idp_conf .py
3
+ idp2 /test_idp_conf .py
4
4
sp /outstanding
5
5
sp /sp_conf.py
6
6
server.crt
Original file line number Diff line number Diff line change 7
7
import re
8
8
import time
9
9
10
- from Cookie import SimpleCookie
10
+ # from Cookie import SimpleCookie
11
11
from hashlib import sha1
12
- from urlparse import parse_qs
12
+ # from urlparse import parse_qs
13
13
from 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
15
18
16
19
from saml2 import BINDING_HTTP_ARTIFACT
17
20
from saml2 import BINDING_URI
@@ -1088,10 +1091,13 @@ def application(environ, start_response):
1088
1091
1089
1092
_https = ""
1090
1093
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
+
1095
1101
logger .info ("Server starting" )
1096
1102
print ("IDP listening on %s:%s%s" % (HOST , PORT , _https ))
1097
1103
try :
You can’t perform that action at this time.
0 commit comments