ssl - HTTPS proxy server python -


i have problem ssl server (in python). set ssl proxy connection in browser, , try connect ssl server.

this server:

import basehttpserver, simplehttpserver import ssl  httpd = basehttpserver.httpserver(('0.0.0.0', 443), simplehttpserver.simplehttprequesthandler) httpd.socket = ssl.wrap_socket (httpd.socket, server_side=true, certfile='server.crt', keyfile='server.key', do_handshake_on_connect=false) httpd.serve_forever() 

this error:

sslerror: [ssl: https_proxy_request] https proxy request (_ssl.c:1750) 

i try connect server in browser. work if went address "https://127.0.0.1:443". but, if use in server proxy, error...

how can fix this?

i don't think understand how proxy server https works.

what doing create plain https server. should create http server handles connect request , creates tunnel requested target. see http://en.wikipedia.org/wiki/http_tunnel#http_connect_tunneling


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -