{"id":173125,"date":"2013-03-18T18:10:06","date_gmt":"2013-03-18T14:10:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=173125"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=173125","title":{"rendered":"<span class=\"post_title\">\u0413\u043e\u0442\u043e\u0432\u0438\u043c Nginx \u043a PCI Compliance<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442.<\/p>\n<p>  C\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Nginx \u043a \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e PCI Compliance. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0435\u0435, \u0442\u043e SSL \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0448\u0438\u0445 SSL \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d14\/bc3\/40b\/d14bc340b51d60ef3536426278f6f124.png\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412\u0441\u0435\u0433\u043e \u0442\u043e \u0438 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0432\u043e\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434:)<\/p>\n<pre><code class=\"bash\">        ssl_certificate       \/etc\/nginx\/card.pem;         ssl_certificate_key  \/etc\/nginx\/card.key;         ssl_ciphers      RC4:HIGH:!aNULL:!MD5:!kEDH;         ssl_session_cache shared:SSL:10m;         ssl_prefer_server_ciphers on; <\/code><\/pre>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e \u043f\u0443\u043d\u043a\u0442\u0430\u043c. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 nginx, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0443\u0442 \u00ab\u0441\u0442\u043e\u0439\u043a\u0438\u0435\u00bb \u0448\u0438\u0444\u0440\u044b. \u041d\u043e \u0432\u0441\u0435 \u0436\u0435, \u043c\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">ssl_ciphers RC4:HIGH:!aNULL:!MD5:!kEDH; <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0448\u0438\u0444\u0440\u0430\u043c \u0441 CBC-\u0440\u0435\u0436\u0438\u043c\u043e\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u043b\u0441\u044f RC4-SHA, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u043e\u0434\u0432\u0435\u0440\u0435\u0436\u0435\u043d\u044b \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044f\u043c.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u0438\u0441\u0442 \u0448\u0438\u0444\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"bash\">openssl ciphers <\/code><\/pre>\n<p>  \u0418\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c BEAST-\u0430\u0442\u0430\u043a\u0438 <a href=\"http:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2011-3389\">CVE-2011-3389<\/a>:<\/p>\n<pre><code class=\"bash\">ssl_prefer_server_ciphers on; <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u0435\u0448 SSL \u0441\u0435\u0441\u0441\u0438\u0439, \u044d\u0442\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442 \u043d\u0430\u0441 \u043e\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 SSL handshake \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0445, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u043b\u043b\u043e\u0432 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0442\u0435\u0441\u0442\u0435. \u0412 1 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u043a\u044d\u0448\u0430 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 4000 \u0441\u0435\u0441\u0441\u0438\u0439.<\/p>\n<pre><code class=\"bash\">ssl_session_cache shared:SSL:10m; <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0430\u0448\u0435\u0433\u043e nginx \u043d\u0438\u0436\u0435 1.0.5, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c:<\/p>\n<pre><code class=\"bash\">ssl_protocols           SSLv3 TLSv1; <\/code><\/pre>\n<p>  \u0418\u0434\u0435\u043c \u043d\u0430 \u0442\u0435\u0441\u0442 \u043e\u0442 SSL Labs \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u00abGrade \u0410\u00bb \u0438 \u00abPCI Compliance Yes\u00bb:<\/p>\n<p>  <a href=\"https:\/\/www.ssllabs.com\/ssltest\/\">www.ssllabs.com\/ssltest\/<\/a><\/p>\n<p>  \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p>  <a href=\"http:\/\/nginx.org\/ru\/docs\/http\/configuring_https_servers.html\">Nginx.org \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 HTTPS-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/a><br \/>  <a href=\"https:\/\/www.ssllabs.com\/projects\/best-practices\/index.html\">SSL\/TLS Deployment Best Practices<\/a><br \/>  <a href=\"https:\/\/www.ssllabs.com\/projects\/rating-guide\/index.html\">SSL Server Rating Guide<\/a>    \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\/173125\/\"> http:\/\/habrahabr.ru\/post\/173125\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442.<\/p>\n<p>  C\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Nginx \u043a \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e PCI Compliance. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0435\u0435, \u0442\u043e SSL \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0448\u0438\u0445 SSL \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d14\/bc3\/40b\/d14bc340b51d60ef3536426278f6f124.png\"\/>  <\/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-173125","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/173125","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=173125"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/173125\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}