{"id":186628,"date":"2013-07-15T13:23:02","date_gmt":"2013-07-15T09:23:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=186628"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=186628","title":{"rendered":"<span class=\"post_title\">JavaPNS \u0438 JRE7<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u0440\u043e\u0434\u0443 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u044f\u0431\u043b\u043e\u0447\u043d\u044b\u0435 \u0434\u0435\u0432\u0430\u0439\u0441\u044b. \u0411\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/code.google.com\/p\/javapns\/\">JavaPNS 2.2<\/a>, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f Developer \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0448\u043b\u0435\u0442 push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0432\u0441\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0437\u0430\u0432\u0435\u0440\u0442\u0435\u043b\u043e\u0441\u044c, push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u2014 \u0432 \u043e\u0431\u0449\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u0447\u0430\u0441\u0442\u044c\u0435. \u041d\u043e \u0432\u043e\u0442 \u043d\u0430\u0441\u0442\u0430\u043b \u0434\u0435\u043d\u044c \u0440\u0435\u043b\u0438\u0437\u0430, \u0431\u044b\u043b \u0432\u043d\u043e\u0432\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u0443\u0436\u0435 Production \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0432 p12 \u0432\u0441\u0435 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0435\u043d\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u2026 \u0438\u0438\u0438\u0438\u0438\u2026 \u043a\u0430\u043a \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e :). \u0421\u0443\u0434\u044f \u043f\u043e \u043b\u043e\u0433\u0430\u043c push \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0430 \u0434\u0435\u0432\u0430\u0439\u0441 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442. <a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e <a href=\"https:\/\/code.google.com\/p\/javapns\/wiki\/GeneralRequirements\">JavaPNS<\/a> \u0438 \u0432\u0438\u0434\u0438\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043e\u0431\u043e\u0434\u0440\u044f\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:  <\/p>\n<blockquote><p> *ABOUT JAVA 7*: <br \/>   Some users have reported problems creating SSL connections while using Java 7 (in general, not just with JavaPNS). <br \/>   Until this issue is completely resolved, you should try to run JavaPNS with Java 5 or 6 if you experience <br \/>   SSL-related connection issues.<\/p><\/blockquote>\n<p>  \u0413\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0435\u0436\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0441\u043e\u0432\u0435\u0442\u044b. \u041d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e 1 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:  <\/p>\n<blockquote><p>Java 7 (JDK 1.7) doesn&#8217;t know about the Entrust Root CA. Import your APNS cert, key, AND the Entrust CA Root certificate into a p12 file. Point the code at that file and it will work.<\/p><\/blockquote>\n<p>  \u0421\u0443\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u043e, \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 oracle \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043b \u0438\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 jre7 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 Entrust.<br \/>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c jre \u043e\u0431 \u044d\u0442\u043e\u043c \u0446\u0435\u043d\u0442\u0440\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u0430 2, \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u0435\u043c\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e \u0431\u044b\u0442\u044c \/usr\/lib\/jre7\/\u2026 (\u043d\u0435 \u043d\u0430\u0448 \u043f\u0443\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u043b\u043e\u0431\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d \u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 \u0440\u0443\u0442\u0430, \u0430 \u0441\u0430\u043c \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442) \u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c. \u0427\u0442\u043e \u043c\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c.<\/p>\n<p>  <b>1. \u041a\u0430\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442<\/b>  <\/p>\n<pre><code class=\"bash\">curl https:\/\/www.entrust.net\/downloads\/binary\/entrust_ssl_ca.cer &gt; entrust_ssl_ca.cer <\/code><\/pre>\n<p>  <b>2. \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e \u0432 KeyChain \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/b><br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/16e\/7ea\/4ef\/16e7ea4eff89d50cb5efc9c84a0696c4.png\" alt=\"image\"\/><br \/>  <b>3. \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c 3 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438: \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438 \u0440\u0443\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 Entrust<\/b><br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ccb\/95e\/5d6\/ccb95e5d6553ba42a815f0ee7a9467cc.png\" alt=\"image\"\/><br \/>  <b>4. \u041f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Export 3 items \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c p12 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 (\u043d\u0435\u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c)<\/b><br \/>  <b>5. \u0414\u0430\u043b\u0435\u0435 \u0441 \u044d\u0442\u0438\u043c p12 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a gateway.push.apple.com \u0438 \u0432\u043f\u0435\u0440\u0435\u0434 <s>\u0441\u043f\u0430\u043c\u0438\u0442\u044c<\/s> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \ud83d\ude42<\/b>    \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\/186628\/\"> http:\/\/habrahabr.ru\/post\/186628\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u0440\u043e\u0434\u0443 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u044f\u0431\u043b\u043e\u0447\u043d\u044b\u0435 \u0434\u0435\u0432\u0430\u0439\u0441\u044b. \u0411\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/code.google.com\/p\/javapns\/\">JavaPNS 2.2<\/a>, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f Developer \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0448\u043b\u0435\u0442 push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0432\u0441\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0437\u0430\u0432\u0435\u0440\u0442\u0435\u043b\u043e\u0441\u044c, push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u2014 \u0432 \u043e\u0431\u0449\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u0447\u0430\u0441\u0442\u044c\u0435. \u041d\u043e \u0432\u043e\u0442 \u043d\u0430\u0441\u0442\u0430\u043b \u0434\u0435\u043d\u044c \u0440\u0435\u043b\u0438\u0437\u0430, \u0431\u044b\u043b \u0432\u043d\u043e\u0432\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u0443\u0436\u0435 Production \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0432 p12 \u0432\u0441\u0435 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0435\u043d\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u2026 \u0438\u0438\u0438\u0438\u0438\u2026 \u043a\u0430\u043a \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e :). \u0421\u0443\u0434\u044f \u043f\u043e \u043b\u043e\u0433\u0430\u043c push \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0430 \u0434\u0435\u0432\u0430\u0439\u0441 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442. <\/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-186628","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186628","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=186628"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186628\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}