{"id":168515,"date":"2013-02-07T13:33:06","date_gmt":"2013-02-07T09:33:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=168515"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=168515","title":{"rendered":"<span class=\"post_title\">Squid3 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 SSLBump \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e.<\/p>\n<p>  \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0435\u0431-\u0442\u0440\u0430\u0444\u0438\u043a \u0432\u0435\u0449\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f, \u043d\u043e \u043f\u043e\u0440\u043e\u0439 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0442\u0430\u043c, \u0432\u043d\u0443\u0442\u0440\u0438, \u0434\u0435\u043b\u0430\u0435\u0442. \u041f\u0440\u0438 \u0437\u0430\u0445\u043e\u0434\u0435 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 https \u0440\u0435\u0441\u0443\u0440\u0441 \u0447\u0435\u0440\u0435\u0437 squid, \u0432 \u043b\u043e\u0433\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <nobr>1330231066.104 10 172.26.27.8 TCP_MISS\/200 390 CONNECT mail.google.com:443 \u2014 HIER_DIRECT\/173.194.32.54 \u2014 <\/nobr><br \/>  <nobr>1330241192.883 9 172.26.27.97 TCP_MISS\/200 390 CONNECT mc.yandex.ru:443 \u2014 HIER_DIRECT\/213.180.193.119 \u2014 <\/nobr><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0437\u0430\u0448\u043b\u0438 \u043d\u0430 gmail \u0438 \u044f\u043d\u0434\u0435\u043a\u0441. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u043e\u0442 \u0438 \u0432\u0441\u0451 \u0447\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u0437 \u043b\u043e\u0433\u043e\u0432. \u041d\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u043b\u0438 GET \u0438\u043b\u0438 POST \u0437\u0430\u043f\u0440\u043e\u0441, \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043f\u043e\u043b\u043d\u044b\u0445 \u0443\u0440\u043b\u043e\u0432, \u043d\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0444\u0430\u0439\u043b\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c ssl \u0442\u0440\u0430\u0444\u0438\u043a \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u043b\u0438\u0431\u043e \u043a\u0430\u043a\u0438\u043c\u0438 content inspection \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c squid&#8217;\u0430 \u00ab\u0440\u0430\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c\u00bb ssl \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0438\u043c\u0435\u0442\u044c \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0431\u0437\u043e\u0440 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 https \u0442\u0440\u0430\u0444\u0438\u043a\u0435.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430 CentOS \u0441\u0442\u043e\u0438\u0442 \u00ab\u0443\u0441\u0438\u043b\u0435\u043d\u043d\u044b\u0439\u00bb openssl, \u0442\u043e \u0441\u0431\u043e\u0440\u043a\u0430 squid&#8217;\u0430 c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043d\u0430\u043c \u043a\u043b\u044e\u0447\u0430\u043c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f.<br \/>  \u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. <br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 \u044d\u0442\u043e \u043b\u0435\u0437\u0442\u044c \u0432 \u0438\u043d\u043a\u043b\u044e\u0434 \u0444\u0430\u0439\u043b\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e openssl, \u043f\u043e\u0442\u043e\u043c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0441\u043a\u0432\u0438\u0434\u0430 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438. \u0418 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u044d\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u043a\u0432\u0438\u0434 \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c openssl.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u044b\u0439 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0435. <\/p>\n<h5>1. openssl<\/h5>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0439 openssl. \u0422\u0443\u0442 \u0432\u0441\u0451 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438:<\/p>\n<p>  <code>wget http:\/\/www.openssl.org\/source\/openssl-1.0.0k.tar.gz<\/code><br \/>  <code>tar -zxf openssl-1.0.0k.tar.gz<\/code><br \/>  <code>cd openssl-1.0.0k<\/code><\/p>\n<p>  \u0427\u0442\u043e \u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 openssl, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0443\u0442\u044c:<\/p>\n<p>  <code>.\/config shared --prefix=\/opt\/squid\/openssl --openssldir=\/opt\/squid\/openssl<\/code><br \/>  <code>make<\/code><br \/>  <code>make install<\/code><br \/>  \u0412\u0441\u0451, openssl \u0441\u043e\u0431\u0440\u0430\u043d \u0438 \u0433\u043e\u0442\u043e\u0432 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e.<\/p>\n<h5>2. squid<\/h5>\n<p>  \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0435 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (configure &#038;&#038; make &#038;&#038; make install), \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u044d\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438:<\/p>\n<p>  <code>wget http:\/\/www.squid-cache.org\/Versions\/v3\/3.2\/squid-3.2.7.tar.gz<\/code><br \/>  <code>tar -zxf squid-3.2.7.tar.gz<\/code><br \/>  <code>cd squid-3.2.7<\/code><br \/>  <code>.\/configure --prefix=\/opt\/squid --enable-ssl --enable-ssl-crtd --with-openssl=\/opt\/squid\/openssl<\/code><\/p>\n<p>  &#8212;enable-ssl \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 ssl \u0440\u0435\u0436\u0438\u043c\u0430<br \/>  &#8212;enable-ssl-crtd \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0430 \u043d\u0435 \u0441\u0430\u043c \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  &#8212;with-openssl \u2014 \u043f\u0443\u0442\u044c \u043a\u0443\u0434\u0430 \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 openssl<\/p>\n<p>  <code>make all<\/code><br \/>  <code>make install<\/code><br \/>  \u0422\u0430\u043a, squid \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043e\u0431\u0440\u0430\u043d.<\/p>\n<h5>3. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c self-signed \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442<\/h5>\n<p>  \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0432\u0435\u0431 \u0441\u0430\u0439\u0442\u043e\u0432.<\/p>\n<p>  <code>cd \/opt\/squid\/etc\/<\/code><br \/>  <code>openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout squidCA.pem -out squidCA.pem<\/code><\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0444\u0430\u0439\u043b squidCA.pem \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root:<br \/>  <code>chmod 400 squidCA.pem<\/code><\/p>\n<h5>4.\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c squid<\/h5>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 squid.conf \u0444\u0430\u0439\u043b  <\/p>\n<pre><code class=\"bash\">http_port 3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=\/opt\/squid\/etc\/squidCA.pem always_direct allow all ssl_bump allow all sslproxy_cert_error allow all sslproxy_flags DONT_VERIFY_PEER <\/code><\/pre>\n<p>  \u0434\u0430\u043d\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043e\u0441\u0442\u0443\u043f \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u043d\u0430 \u0432\u0441\u0435 https \u0441\u0430\u0439\u0442\u044b \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438.<\/p>\n<p>  \u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432:<br \/>  <code>mkdir \/opt\/squid\/var\/lib<\/code><br \/>  <code>\/opt\/squid\/libexec\/ssl_crtd -c -s \/opt\/squid\/var\/lib\/ssl_db<\/code><br \/>  <code>chown -R nobody \/opt\/squid\/var\/lib\/ssl_db<\/code><br \/>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <b>cache_effective_user<\/b> \u0441\u0442\u043e\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u0435 UID, \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e nobody \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<\/p>\n<p>  <i>\u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u0432\u0430\u0448 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f squid&#8217;\u0430, \u0442\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/opt\/squid\/var\/lib\/ssl_db \u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.<\/i><\/p>\n<p>  \u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0440\u0430\u0432\u0430, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440:<br \/>  <code>chown -R nobody \/opt\/squid\/var\/logs<\/code><br \/>  <code>\/opt\/squid\/sbin\/squid -z <\/code><br \/>  <code>\/opt\/squid\/sbin\/squid<\/code><br \/>  \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0444\u0430\u0439\u043b \/opt\/squid\/var\/logs\/cache.log \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a, \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435\u0442 \u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 &quot;<code>Accepting SSL bumped HTTP Socket connections at local=[::]:3128 remote=[::] FD 21 flags=9<\/code>&quot;, \u0442\u043e \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 SSLBump \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<\/p>\n<h5>5. \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h5>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c self-signed \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u043b\u044e\u0431\u044b\u0435 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f https \u0441\u0430\u0439\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u2014 Issuer \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 Trusted CA \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<br \/>  \u0427\u0442\u043e \u0431\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0431\u044b\u043b\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.<\/p>\n<p>  <code>openssl x509 -in squidCA.pem -outform DER -out squid.der<\/code><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b squid.der \u043d\u0430\u0434\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440.<br \/>  \u0414\u043b\u044f Internet Explorer:<br \/>  Tools-&gt;Internet Options-&gt;Content-&gt;Certificates<br \/>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \u00abTrusted Root Certificate Authorities\u00bb<br \/>  \u0416\u043c\u0451\u043c Import, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b squid.der \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442.<\/p>\n<p>  \u0414\u043b\u044f Firefox:<br \/>  Tools-&gt;Options-&gt;Advanced-&gt;Encryption-&gt;View Certificates<br \/>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \u00abAuthorities\u00bb<br \/>  \u0416\u043c\u0451\u043c Import, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b squid.der \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442.<\/p>\n<p>  \u041d\u0443 \u0432\u043e\u0442 \u0432 \u043e\u0431\u0449\u0435\u043c \u0442\u043e \u0432\u0441\u0451. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0438\u0445 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0439, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432 https \u0442\u0440\u0430\u0444\u0438\u043a\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c POST \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c\/\u043f\u0430\u043f\u043a\u0430\u043c. \u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0430 \u0441\u0430\u0439\u0442\u044b, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u0434\u0430\u043d\u044b \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 CA. \u041d\u0443 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0430 \u0432\u0438\u0440\u0443\u0441\u044b.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435,    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/168515\/\"> http:\/\/habrahabr.ru\/post\/168515\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e.<\/p>\n<p>  \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0435\u0431-\u0442\u0440\u0430\u0444\u0438\u043a \u0432\u0435\u0449\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f, \u043d\u043e \u043f\u043e\u0440\u043e\u0439 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0442\u0430\u043c, \u0432\u043d\u0443\u0442\u0440\u0438, \u0434\u0435\u043b\u0430\u0435\u0442. \u041f\u0440\u0438 \u0437\u0430\u0445\u043e\u0434\u0435 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 https \u0440\u0435\u0441\u0443\u0440\u0441 \u0447\u0435\u0440\u0435\u0437 squid, \u0432 \u043b\u043e\u0433\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <nobr>1330231066.104 10 172.26.27.8 TCP_MISS\/200 390 CONNECT mail.google.com:443 \u2014 HIER_DIRECT\/173.194.32.54 \u2014 <\/nobr><br \/>  <nobr>1330241192.883 9 172.26.27.97 TCP_MISS\/200 390 CONNECT mc.yandex.ru:443 \u2014 HIER_DIRECT\/213.180.193.119 \u2014 <\/nobr><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0437\u0430\u0448\u043b\u0438 \u043d\u0430 gmail \u0438 \u044f\u043d\u0434\u0435\u043a\u0441. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u043e\u0442 \u0438 \u0432\u0441\u0451 \u0447\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u0437 \u043b\u043e\u0433\u043e\u0432. \u041d\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u043b\u0438 GET \u0438\u043b\u0438 POST \u0437\u0430\u043f\u0440\u043e\u0441, \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043f\u043e\u043b\u043d\u044b\u0445 \u0443\u0440\u043b\u043e\u0432, \u043d\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0444\u0430\u0439\u043b\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c ssl \u0442\u0440\u0430\u0444\u0438\u043a \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u043b\u0438\u0431\u043e \u043a\u0430\u043a\u0438\u043c\u0438 content inspection \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c squid&#8217;\u0430 \u00ab\u0440\u0430\u0437\u043b\u0430\u043c\u044b\u0432\u0430\u0442\u044c\u00bb ssl \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0438\u043c\u0435\u0442\u044c \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0431\u0437\u043e\u0440 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 https \u0442\u0440\u0430\u0444\u0438\u043a\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-168515","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168515"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168515\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}