> cache_peer 127.0.0.1 parent 3129 0 【no ssl】
< X-Cache: MISS from example.com
< Transfer-Encoding: chunked
< Connection: keep-alive
{ "clientip": "127.0.0.1", "ident": "-", "uname": "admin", "timestamp": "2020-09-28T04:16:28+0000", "verb": "CONNECT", "request": "google.com:443", "httpversion": "HTTP/1.1", "response": 200, "bytes": 0, "referer": "-", "agent": "curl/7.47.0", "request_status": "HIER_NONE", "hierarchy_status": "HIER_NONE" }
{ "clientip": "127.0.0.1", "ident": "-", "uname": "admin", "timestamp": "2020-09-28T04:16:28+0000", "verb": "GET", "request": "https://google.com/", "httpversion": "HTTP/1.1", "response": 502, "bytes": 117, "referer": "-", "agent": "curl/7.47.0", "request_status": "HIER_NONE", "hierarchy_status": "HIER_NONE" }
> cache_peer 127.0.0.1 parent 3129 0 ssk
< HTTP/1.1 503 Service Unavailable
< Server: squid/5.0.4
< Mime-Version: 1.0
< Date: Mon, 28 Sep 2020 04:21:00 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 1649
< X-Squid-Error: ERR_SECURE_CONNECT_FAIL 71
<p>The system returned:</p>
<blockquote id="data">
<pre>(71) Protocol error (TLS code: SQUID_ERR_SSL_HANDSHAKE)</pre>
<p>Handshake with SSL server failed: [No Error]</p>
</blockquote>
On 9/27/20 12:07 PM, sec wrote:
> http_port 3128 ssl-bump ...
> curl http://google.com -x https://admin:squid@localhost:3128 -v -k
The above two lines do not match AFAICT: You tell curl to use an HTTPS
proxy, but you tell Squid to expect plain HTTP proxy requests.
Also, please note that if you fix the above problem by moving "https"
from "-x" to the origin server URL, then you will probably face another
problem:
curl https://google.com -x http://admin:squid@localhost:3128 -v -k
> ssl_bump allow all
> cache_peer 127.0.0.1 parent 3129 0 ssl
Squid does not (yet) support "TLS inside TLS": Talking TLS with the
origin server through a cache_peer that also expects a TLS connection.
HTH,
Alex.
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users