Sylvain Hellegouarch avatar Sylvain Hellegouarch committed ffb7823

single SSL server recipe

Comments (0)

Files changed (4)

deployment/tls/server.crt

+-----BEGIN CERTIFICATE-----
+MIICATCCAWoCCQDYwq5UbWJ62zANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
+VTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0
+cyBQdHkgTHRkMB4XDTEyMDMxNDIxMDMyMloXDTEzMDMxNDIxMDMyMlowRTELMAkG
+A1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0
+IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAu8ic
+FFJZbp+U6L2HIEFPnblWGaECUQvBIjNAQqzmrMc7GY6BEAolC9g7mNi2D1JaYcxs
+WgqjiypfW9tiOsybmoGDh2b+HsxkmtIWDM0anHCxbncJitCIrpqHp9Tu7Fvk8SrA
+kKfu+3fQ/9ge8yDoa2t23/WKnG+nO7G/JuLyEJkCAwEAATANBgkqhkiG9w0BAQUF
+AAOBgQCD5nRO8nzqlF/Q3wo+pJtHJjS88I6nZxhZTecmhZ3R4J6jo1V/RMysYYNt
+zLK8m5QEv2P0SLmf5ysGam6Kd8PBGRxMWW1wbWnwxKyDoaso7vTK4eHzwrxgQk9w
+pKnxiyt1k4P2vars13hdxAEQu11yJkzoMieHTyS+FxIUexUvTg==
+-----END CERTIFICATE-----

deployment/tls/server.csr

+-----BEGIN CERTIFICATE REQUEST-----
+MIIBhDCB7gIBADBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEh
+MB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEB
+AQUAA4GNADCBiQKBgQC7yJwUUllun5TovYcgQU+duVYZoQJRC8EiM0BCrOasxzsZ
+joEQCiUL2DuY2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zDCjI2xSRCskhw7toXHVYz0rffCHkYc
+VnBbeccUIlxNYoIfUwJBAKdrypQG/vu6xvRm4Y70K+IiOxzOCIflyT8KYI106jqt
+0LfwMlVmtiGUr3tj+GEyi+FlisEJ7xaEHIu41yrcR/4=
+-----END RSA PRIVATE KEY-----

deployment/tls/single_ssl_server.py

+# -*- coding: utf-8 -*-
+import cherrypy
+
+class Root(object):
+    @cherrypy.expose
+    def index(self):
+        return "hello world using: %s" % cherrypy.request.scheme
+
+if __name__ == '__main__':
+    cherrypy.config.update({'server.socket_port': 8090,
+                            'server.ssl_certificate': './server.crt',
+                            'server.ssl_private_key': './server.key'})
+    cherrypy.quickstart(Root())
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.