{"id":481,"date":"2019-04-27T15:59:29","date_gmt":"2019-04-27T12:59:29","guid":{"rendered":"http:\/\/www.maxx.net.ua\/?p=481"},"modified":"2019-12-21T12:42:55","modified_gmt":"2019-12-21T10:42:55","slug":"pfsense-mitm-ssl-proxy-%d1%82%d0%b0-firefox-%d0%b7-android","status":"publish","type":"post","link":"https:\/\/www.maxx.net.ua\/?p=481","title":{"rendered":"pfSense mitm SSL proxy \u0442\u0430 firefox \u0437 Android"},"content":{"rendered":"<p>\u041f\u0456\u0441\u043b\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f <strong>SSL Man In the Middle Filtering<\/strong> \u043d\u0430 <strong>pfSense<\/strong> \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438 \u0442\u0440\u0435\u0431\u0430 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 ca \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u043d\u0430 \u0443\u0441\u0456\u0445 \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044f\u0445.<\/p>\n<p>\u042f\u043a\u0449\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0430\u043d\u0442\u0436\u0438\u0442\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u043d\u0430 Android \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e firefox, firefox \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0442\u0430 \u0432\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0434\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u0430\u043b\u0435 firefox \u0446\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0439\u043e\u0433\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435. \u0429\u043e\u0431 firefox \u0440\u043e\u0437\u043f\u0456\u0437\u043d\u0430\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u044f\u043a CA \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0442\u0440\u0435\u0431\u0430 \u0449\u043e\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0456\u0434\u0434\u0430\u0432 \u0439\u043e\u0433\u043e \u044f\u043a &#8220;application\/x-x509-ca-cert&#8221; content-type.<\/p>\n<p>\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0446\u0435 \u043c\u043e\u0436\u043d\u0430 \u0431\u0430\u0433\u0430\u0442\u044c\u043c\u0430 \u0448\u043b\u044f\u0445\u0430\u043c\u0438, \u044f \u0437\u0440\u043e\u0431\u0438\u0432 \u0446\u0435 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 Java:<\/p>\n<pre><code class=\"language-java\">package maxx.ca.rest;\r\n\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\n\r\nimport org.apache.commons.io.IOUtils;\r\nimport org.springframework.web.bind.annotation.GetMapping;\r\nimport org.springframework.web.bind.annotation.ResponseBody;\r\nimport org.springframework.web.bind.annotation.RestController;\r\n\r\n@RestController\r\npublic class CertPage {\r\n    @GetMapping(value = \"\/android\", produces = \"application\/x-x509-ca-cert\")\r\n    public @ResponseBody\r\n    byte[] getImageWithMediaType() throws IOException {\r\n        InputStream in = getClass().getResourceAsStream(\"\/ssl+ca.crt\");\r\n        return IOUtils.toByteArray(in);\r\n    }\r\n}<\/code><\/pre>\n<p class=\"lang:java decode:true\">\u0412\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0454\u043c\u043e firefox \u043d\u0430 Android \u0442\u0430 \u0432\u0432\u043e\u0434\u0438\u043c\u043e\u00a0<strong>http:\/\/host:8080\/android<\/strong> \u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0430\u0434\u0440\u0435\u0441\u0438, \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0456\u0441\u043b\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f SSL Man In the Middle Filtering \u043d\u0430 pfSense \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438 \u0442\u0440\u0435\u0431\u0430 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 ca \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u043d\u0430 \u0443\u0441\u0456\u0445 \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044f\u0445. \u042f\u043a\u0449\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0430\u043d\u0442\u0436\u0438\u0442\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u043d\u0430 Android \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e firefox, firefox \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0442\u0430 \u0432\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0434\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u0430\u043b\u0435 firefox \u0446\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0439\u043e\u0433\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435. \u0429\u043e\u0431 firefox \u0440\u043e\u0437\u043f\u0456\u0437\u043d\u0430\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u044f\u043a CA \u0441\u0435\u0440\u0442\u0438\u0444\u0456\u043a\u0430\u0442 \u0442\u0440\u0435\u0431\u0430 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/481"}],"collection":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=481"}],"version-history":[{"count":9,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":529,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/481\/revisions\/529"}],"wp:attachment":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}