This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A simple http/https socket server | |
| # to generate your certificates : openssl req -new -x509 -keyout /etc/ssl/localcerts/certificates.pem -out /etc/ssl/localcerts/certificates.pem -days 365 -nodes | |
| # to start the server python3 sockethttpsproxy.py | |
| __HOST__ = 'localhost' | |
| __BASE_PORT__ = "1080" | |
| __FRONTEND_PORT__ = int(__BASE_PORT__) | |
| __BACKEND_PORT_SSL__ = int(__BASE_PORT__ + "1") | |
| __BACKEND_PORT_HTTP__ = int(__BASE_PORT__ + "2") | |
| __CERTS_FOLDER__ = "/etc/ssl/localcerts/" | |
| __BUFFER_SIZE__ = 4096 |