{"id":5140,"date":"2019-10-28T12:17:03","date_gmt":"2019-10-28T03:17:03","guid":{"rendered":"https:\/\/www.syuheiuda.com\/?p=5140"},"modified":"2019-10-28T12:17:03","modified_gmt":"2019-10-28T03:17:03","slug":"application-gateway-%e3%81%ae%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%81%ab-ssl-%e3%82%aa%e3%83%95%e3%83%ad%e3%83%bc%e3%83%89%e7%94%a8%e3%81%ae%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.syuheiuda.com\/?p=5140","title":{"rendered":"Application Gateway \u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b SSL \u30aa\u30d5\u30ed\u30fc\u30c9\u7528\u306e\u8a3c\u660e\u66f8\u3092\u57cb\u3081\u8fbc\u3080\u65b9\u6cd5"},"content":{"rendered":"\n<p>Application Gateway \u306e ARM \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b SSL \u8a3c\u660e\u66f8 (PFX) \u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306e\u65b9\u6cd5\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u3042\u3001GitHub \u306e\u4ee5\u4e0b\u306b\u30b5\u30f3\u30d7\u30eb\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u771f\u4f3c\u3059\u308b\u3060\u3051\u306a\u3093\u3067\u3059\u304c\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/Azure\/azure-quickstart-templates\/blob\/master\/101-application-gateway-public-ip-ssl-offload\/azuredeploy.json\">azure-quickstart-templates\/101-application-gateway-public-ip-ssl-offload\/azuredeploy.json<\/a><\/p>\n\n\n\n<p>\u8a72\u5f53\u7b87\u6240\u306f\u3001125 &#8211; 133 \u884c\u76ee\u306e\u4ee5\u4e0b\u306e\u7b87\u6240\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n    &quot;sslCertificates&quot;: &#x5B;\n      {\n        &quot;name&quot;: &quot;appGatewaySslCert&quot;,\n        &quot;properties&quot;: {\n          &quot;data&quot;: &quot;&#x5B;parameters('certData')]&quot;,\n          &quot;password&quot;: &quot;&#x5B;parameters('certPassword')]&quot;\n        }\n      }\n    ],\n<\/pre><\/div>\n\n\n<p>data \u3068 password \u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u8a3c\u660e\u66f8\u306e\u30c7\u30fc\u30bf (PFX \u3092 Base-64 \u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u305f\u3082\u306e) \u3068\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308c\u3070 OK \u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001[parameters()] \u3067\u4e8b\u524d\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u3092\u53c2\u7167\u3059\u308b\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u8a72\u5f53\u7b87\u6240\u306f 50 &#8211; 61 \u884c\u76ee\u306e\u3042\u305f\u308a\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&quot;certData&quot;: {\n  &quot;type&quot;: &quot;string&quot;,\n  &quot;metadata&quot;: {\n    &quot;description&quot;: &quot;Base-64 encoded form of the .pfx file&quot;\n  }\n},\n&quot;certPassword&quot;: {\n  &quot;type&quot;: &quot;securestring&quot;,\n  &quot;metadata&quot;: {\n    &quot;description&quot;: &quot;Password for .pfx certificate&quot;\n  }\n},\n<\/pre><\/div>\n\n\n<p>PFX \u30d5\u30a1\u30a4\u30eb\u3092 Base-64 \u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u306b\u306f\u3001Windows PowerShell \u3067\u4ee5\u4e0b\u306e\u69d8\u306a\u611f\u3058\u3067\u3084\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n$CertPath = &quot;&lt;PFX \u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30eb\u30d1\u30b9&gt;&quot;\n&#x5B;System.Convert]::ToBase64String(&#x5B;System.IO.File]::ReadAllBytes($CertPath)) | Out-File &quot;&lt;Base64 \u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u306e\u51fa\u529b\u5148\u30d5\u30eb\u30d1\u30b9&gt;&quot;\n<\/pre>\n\n\n\n<p>ARM \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f7f\u3044\u65b9\u306f\u3001\u3053\u306e\u8fba\u306e\u30ea\u30f3\u30af\u3092\u3069\u3046\u305e\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/resource-group-authoring-templates\">Azure Resource Manager \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u69cb\u9020\u3068\u69cb\u6587\u306e\u8a73\u7d30<\/a><\/li><li><a href=\"https:\/\/channel9.msdn.com\/Events\/de-code\/2016\/INF-011\">\u9a5a\u6115! Azure \u30ea\u30bd\u30fc\u30b9 \u30de\u30cd\u30fc\u30b8\u30e3\u3092\u5229\u7528\u3057\u305f Infrastructure as Code \u5b9f\u8df5<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Application Gateway \u306e ARM \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b SSL \u8a3c\u660e&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.syuheiuda.com\/?p=5140\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"","_original_post":""},"categories":[42,31],"tags":[],"views":6244,"_links":{"self":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/5140"}],"collection":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5140"}],"version-history":[{"count":1,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/5140\/revisions"}],"predecessor-version":[{"id":5141,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/5140\/revisions\/5141"}],"wp:attachment":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}