Squid の SSL Bump が実際に動作しているかどうかを確認する方法
(カスタム CA がインストールされていないクリーンな Windows クライアントを例に説明します)
Chrome/Edge でこのエラーが表示されるのはなぜですか?
net::ERR_CERT_AUTHORITY_INVALID
このエラーは、以下の状況でのみ発生します。
ブラウザが再署名された HTTPS 証明書を受け取ったものの、それを発行した CA を信頼していない場合。
⚠️ 重要事項 (非常に重要)
SSL Bump が有効になっていない場合、
このエラーは発生しません。
理由は簡単です。
SSL Bump が有効になっていない場合
→ ブラウザは元のウェブサイト (Google/Microsoft など) からの公式証明書のみを参照します。
→ 緑色の南京錠アイコンのみが表示されます。
→ ERR_CERT_AUTHORITY_INVALID は表示されません。
👉 したがって、このエラー自体が、
SSL Bump が実際に HTTPS を実装していることの直接的な証拠となります。
真の「確固たる証拠」はどこにあるのでしょうか?
気づいていないかもしれませんが、以下の行は「階層構造」の紛れもない証拠です。
Via: ICAP/1.0 YourServerName (C-ICAP/0.5.12 srv_content_filtering service), 1.1 No1.f88tw (squid/6.12)
なぜこの行はHTTPSにおいてそれほど重要なのでしょうか?
通常のHTTPSの動作では、以下のようになります。
CONNECTトンネルが確立された後、
SquidはHTTPヘッダーを認識できません。
c-icapは呼び出されません。
つまり、以下のようになります。
SSLバンプは発生しません。
→ HTTPSはプロキシにとって暗号化されたブラックボックスです。
👉 しかし、今何が見えますか?
HTTPSレスポンスヘッダーは
「ICAPサービス経由」と直接示しており、
Squidとc-icapのバージョンと役割を示しています。
これはアーキテクチャ的に次のことを意味します。
🧠 SquidがSSLバンプを完了しました。
→ HTTPSを復号しました。
→ コンテンツをc-icapに送信しました。
→ 再暗号化され、クライアントに送り返されました。請嘗試新的跨平台 PowerShell https://aka.ms/pscore6
PS C:\Users\c05> curl.exe https://www.baidu.com --proxy http://192.168.0.88:3128 -k -v
* Trying 192.168.0.88:3128...
* Connected to 192.168.0.88 (192.168.0.88) port 3128
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to www.baidu.com:443
> CONNECT www.baidu.com:443 HTTP/1.1
> Host: www.baidu.com:443
> User-Agent: curl/8.9.1
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
<
* CONNECT phase completed
* CONNECT tunnel established, response 200
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* ALPN: server did not agree on a protocol. Uses default.
* using HTTP/1.x
> GET / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Content-Length: 2443
< Content-Type: text/html
< Pragma: no-cache
< Server: bfe
< Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/
< Date: Fri, 30 Jan 2026 08:44:48 GMT
< Via: ICAP/1.0 YourServerName (C-ICAP/0.5.12 srv_content_filtering service ), 1.1 No1.proxy (squid/6.12)
< Cache-Status: No1.proxy;fwd=miss;detail=match
< Connection: keep-alive
<
<!DOCTYPE html>
<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus=autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn" autofocus></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=https://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');
</script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>©2017 Baidu <a href=http://www.baidu.com/duty/>使用百度前必读</a> <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a> 京ICP证030173号 <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>
* Connection #0 to host 192.168.0.88 left intact
PS C:\Users\c05>
http://mypaper.m.pchome.com.tw/f88tw/post/1370820447