SSL (https) error on my custom proxy server

前端 未结 1 377
醉梦人生
醉梦人生 2020-12-20 09:44

here\'s i mode code!  when i send http request from firefox it work fine! but when i try https firefox reply with this:

An error occurred during a con

1条回答
  •  囚心锁ツ
    2020-12-20 10:16

    An HTTP proxy normally does not make the HTTPS request itself (unless it's specifically designed to make an "official" Man-In-The-Middle attack).

    HTTP clients (including browsers) use the HTTP CONNECT method to tell the proxy server to forward the entire HTTPS request (effectively, the SSL/TLS) tunnel to the target HTTPS server.

    When you get a CONNECT request on your proxy (say CONNECT host.example.org:443), you should make a direct TCP connection to host.example.org:443 and relay its content (both ways) to the browser, without alteration.

    0 讨论(0)
提交回复
热议问题