{"id":1191,"date":"2017-01-10T14:14:18","date_gmt":"2017-01-10T05:14:18","guid":{"rendered":"https:\/\/ecoop.net\/memo\/?p=1191"},"modified":"2017-02-13T21:34:42","modified_gmt":"2017-02-13T12:34:42","slug":"convert-private-key-and-cert-to-p12","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/convert-private-key-and-cert-to-p12.html","title":{"rendered":"\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u304b\u3089p12\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b"},"content":{"rendered":"<p>\u8a3c\u660e\u66f8\u3068\u9375\u30d5\u30a1\u30a4\u30eb\u304b\u3089p12\u30d5\u30a1\u30a4\u30eb\uff08pkcs12\uff09\u3092\u4f5c\u308b\u624b\u9806\u306e\u30e1\u30e2\u3002<br \/>\n\u8a3c\u660e\u66f8\uff08cer\uff09\u3092PEM\u306b\u5909\u63db\u3059\u308b\u3001\u9375\uff08PEM private key\uff09\u3068\u7d50\u5408\u3057\u3066p12\u306b\u3059\u308b\u3001\u3068\u3044\u3046\uff12\u6bb5\u69cb\u3048\u3002<\/p>\n<p>\u53c2\u8003\uff1a http:\/\/spiratesta.hatenablog.com\/entry\/20120215\/1329280918<\/p>\n<p>1.\u516c\u958b\u7528\u8a3c\u660e\u66f8\u3092PEM\u8a3c\u660e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ openssl x509 -in distribution_identity.cer -inform DER -out distribution_identity.pem -outform PEM\n<\/pre>\n<p>2.PEM\u8a3c\u660e\u66f8\u5f62\u5f0f\u3092P12\u8a3c\u660e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ openssl pkcs12 -export -inkey mykey.key -in distribution_identity.pem -out distribution_identity.p12\n<\/pre>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u9069\u5b9c\u5165\u529b\u3059\u308b\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u7a7a\u6b04\u3060\u3068\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u53d6\u308a\u8fbc\u307f\u3067\u304d\u306a\u3044\uff09<\/p>\n<p>3.P12\u8a3c\u660e\u66f8\u3092\u958b\u3044\u3066\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u306b\u53d6\u308a\u8fbc\u3080(\u53d6\u308a\u8fbc\u307f\u6642\u306b\u4e0a\u8a18\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b)<\/p>\n<h3>\u306a\u305c\u5fc5\u8981\u3060\u3063\u305f\u304b<\/h3>\n<p>MacBook Pro \u304c\u58ca\u308c\u305f\u306e\u3067\u4fee\u7406\u3057\u3066\u3001\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u305f\u3093\u3067\u3059\u304c\u3001<br \/>\n\u305d\u306e\u3068\u304d\u306b\u3068\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eApp Store\u306e\u30ea\u30ea\u30fc\u30b9\u7528(Distribution)\u79d8\u5bc6\u9375\u306e\u79fb\u884c\u3092\u5fd8\u308c\u3066\u55aa\u5931\u3057\u3066\u3057\u307e\u3063\u305f\u305f\u3081\u3001<br \/>\n\u306a\u3093\u3068\u304b\u30b5\u30eb\u30d9\u30fc\u30b8\u3067\u304d\u306a\u3044\u304b\u3001\u3068\u8a66\u884c\u932f\u8aa4\u3059\u308b\u306e\u306b\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>Circle CI\u306bp12\u306e\u9375\u304c\u4e0a\u304c\u3063\u3066\u3044\u305f\u306e\u3067\u3001CI\u3092\u56de\u3057\u3066SSH\u3067\u5165\u308a\u3001<br \/>\n\u9375\u30d5\u30a1\u30a4\u30eb\uff08\/var\/folders\/jm\/\u307b\u3052\u307b\u3052\/T\/cert.abcdef\uff09\u3092cat\u3057\u3066\u53d6\u308a\u51fa\u3057 .key \u3068\u3057\u3066\u4fdd\u5b58\u3001<br \/>\nApple Developer\u30b5\u30a4\u30c8\u306e\u3000Certificates,IDs &amp; Profiles \u304b\u3089\u8a3c\u660e\u66f8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001<br \/>\n\u3042\u3068\u306f\u624b\u9806\u901a\u308a\u306e\u7d50\u5408\u3067\u4e8b\u306a\u304d\u3092\u5f97\u307e\u3057\u305f\u3002\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u5927\u4e8b\u3067\u3059\u306d\u3002\u3002<\/p>\n<h3>\u3053\u3093\u306a\u8a18\u4e8b\u3082\u3042\u308a\u307e\u3059<\/h3>\n<p><a href=\"https:\/\/www.ecoop.net\/memo\/archives\/how-to-show-p12-certification-information.html\">.p12\u30ad\u30fc\u30b9\u30c8\u30a2\u30d5\u30a1\u30a4\u30eb\u8a3c\u660e\u66f8\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a3c\u660e\u66f8\u3068\u9375\u30d5\u30a1\u30a4\u30eb\u304b\u3089p12\u30d5\u30a1\u30a4\u30eb\uff08pkcs12\uff09\u3092\u4f5c\u308b\u624b\u9806\u306e\u30e1\u30e2\u3002 \u8a3c\u660e\u66f8\uff08cer\uff09\u3092PEM\u306b\u5909\u63db\u3059\u308b\u3001\u9375\uff08PEM private key\uff09\u3068\u7d50\u5408\u3057\u3066p12\u306b\u3059\u308b\u3001\u3068\u3044\u3046\uff12\u6bb5\u69cb\u3048\u3002 \u53c2\u8003\uff1a http:\/\/spirat &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/convert-private-key-and-cert-to-p12.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u304b\u3089p12\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,135],"tags":[145,116,144,146],"class_list":["post-1191","post","type-post","status-publish","format-standard","hentry","category-ios-dev","category-server","tag-apple","tag-ios","tag-p12","tag-certification"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=1191"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1191\/revisions"}],"predecessor-version":[{"id":1200,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1191\/revisions\/1200"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=1191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=1191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=1191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}