{"id":3614,"date":"2020-06-14T00:00:40","date_gmt":"2020-06-13T15:00:40","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3614"},"modified":"2020-06-14T00:01:04","modified_gmt":"2020-06-13T15:01:04","slug":"%e3%81%95%e3%81%8f%e3%82%89%e3%81%ae%e3%82%a6%e3%82%a7%e3%83%96%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b5%e3%83%ac%e3%83%bc%e3%82%bf%e3%81%abapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6ssl%e8%a8%bc","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3614","title":{"rendered":"\u3055\u304f\u3089\u306e\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30b5\u30ec\u30fc\u30bf\u306bAPI\u3092\u5229\u7528\u3057\u3066SSL\u8a3c\u660e\u66f8\u3092\u767b\u9332\u3059\u308b"},"content":{"rendered":"<p>\u672c\u30b5\u30a4\u30c8\u306f \u3055\u304f\u3089\u306e\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30b5\u30ec\u30fc\u30bf + Amazon Lightsail \u69cb\u6210\u3002<br \/>\nSSL\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3092\u5fd8\u308c\u304c\u3061\u306a\u306e\u3067\u3001API\u7d4c\u7531\u3067\u66f4\u65b0\u3067\u304d\u308b\u304b\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n<a href=\"http:\/\/eatsmart.hatenablog.com\/entry\/2019\/11\/25\/212901\">\u3055\u304f\u3089\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u3067\u4f7f\u3046\u30c9\u30e1\u30a4\u30f3\u306eSSL\u8a3c\u660e\u66f8\u66f4\u65b0<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\nLet&#8217;s Encrypt\u3067\u8a3c\u660e\u66f8\u53d6\u5f97\u3057\u305f\u5f8c\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<h2>API\u30ad\u30fc\u306e\u53d6\u5f97<\/h2>\n<p><a href=\"https:\/\/secure.sakura.ad.jp\/cloud\/?_ga=2.253282831.724410128.1574393988-1417099700.1573542973#!\/apikey\/top\/\">API\u7ba1\u7406\u30da\u30fc\u30b8<\/a>\u304b\u3089\u3001API\u30ad\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n<a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931-300x149.png\" alt=\"\" width=\"300\" height=\"149\" class=\"alignnone size-medium wp-image-3615\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931-300x149.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931-1024x507.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931-768x380.png 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931-1536x761.png 1536w, https:\/\/tech.akat.info\/wp-content\/uploads\/2020\/06\/2020-06-13_232931.png 2047w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>ID\u306e\u53d6\u5f97<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# curl -s -X GET --user &quot;\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot;:&quot;\u30c8\u30fc\u30af\u30f3\u30b7\u30fc\u30af\u30ec\u30c3\u30c8&quot; https:\/\/secure.sakura.ad.jp\/cloud\/zone\/is1a\/api\/webaccel\/1.0\/site | jq\r\n{\r\n  &quot;Total&quot;: 1,\r\n  &quot;From&quot;: 0,\r\n  &quot;Count&quot;: 1,\r\n  &quot;CountLimit&quot;: 20,\r\n  &quot;Sites&quot;: &#x5B;\r\n    {\r\n      &quot;Index&quot;: 0,\r\n      &quot;ID&quot;: &quot;xxxxxxxxxxxx&quot;,\r\n      &quot;Name&quot;: &quot;tech.akat.info&quot;,\r\n      &quot;Domain&quot;: &quot;tech.akat.info&quot;,\r\n      &quot;DomainType&quot;: &quot;own_domain&quot;,\r\n      &quot;Subdomain&quot;: &quot;6g89bvml.user.webaccel.jp&quot;,\r\n      &quot;ASCIIDomain&quot;: &quot;tech.akat.info&quot;,\r\n      &quot;OriginProtocol&quot;: &quot;https&quot;,\r\n      &quot;RequestProtocol&quot;: &quot;2&quot;,\r\n      &quot;Origin&quot;: &quot;x.x.x.x&quot;,\r\n      &quot;HostHeader&quot;: &quot;tech.akat.info&quot;,\r\n      &quot;Status&quot;: &quot;enabled&quot;,\r\n      &quot;OriginGuardToken&quot;: &quot;&quot;,\r\n      &quot;NextOriginGuardToken&quot;: &quot;&quot;,\r\n      &quot;DefaultCacheTTL&quot;: -1,\r\n      &quot;CreatedAt&quot;: &quot;2019-03-25T03:15:42+09:00&quot;,\r\n      &quot;HasCertificate&quot;: true,\r\n      &quot;HasOldCertificate&quot;: true,\r\n      &quot;GibSentInLastWeek&quot;: 0,\r\n      &quot;CertValidNotBefore&quot;: &quot;1584723561000&quot;,\r\n      &quot;CertValidNotAfter&quot;: &quot;1592499561000&quot;\r\n    }\r\n  ],\r\n  &quot;is_ok&quot;: true\r\n}\r\n<\/pre>\n<h2>\u8a3c\u660e\u66f8\u3092\u767b\u9332\u3059\u308b<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# curl -s -X PUT --user &quot;\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot;:&quot;\u30c8\u30fc\u30af\u30f3\u30b7\u30fc\u30af\u30ec\u30c3\u30c8&quot; https:\/\/secure.sakura.ad.jp\/cloud\/zone\/is1a\/api\/webaccel\/1.0\/site\/xxxxxxxxxxxx\/certificate -d &quot;{\\&quot;Certificate\\&quot;: { \\&quot;CertificateChain\\&quot;: \\&quot;$(perl -pe 's\/\\n\/\\\\n\/' \/etc\/letsencrypt\/live\/tech.akat.info\/fullchain.pem | perl -pe 's\/\\\\n$\/\/')\\&quot;, \\&quot;Key\\&quot;: \\&quot;$(perl -pe 's\/\\n\/\\\\n\/' \/etc\/letsencrypt\/live\/tech.akat.info\/privkey.pem | perl -pe 's\/\\\\n$\/\/')\\&quot; }}&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u30b5\u30a4\u30c8\u306f \u3055\u304f\u3089\u306e\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30b5\u30ec\u30fc\u30bf + Amazon Lightsail \u69cb\u6210\u3002 SSL\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3092\u5fd8\u308c\u304c\u3061\u306a\u306e\u3067\u3001API\u7d4c\u7531\u3067\u66f4\u65b0\u3067\u304d\u308b\u304b\u8a66\u3057\u3066\u307f\u305f\u3002 \u3055\u304f\u3089\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u3067\u4f7f\u3046\u30c9\u30e1\u30a4\u30f3\u306eSSL\u8a3c\u660e\u66f8\u66f4\u65b0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[99],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3614"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3614"}],"version-history":[{"count":2,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3614\/revisions"}],"predecessor-version":[{"id":3617,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3614\/revisions\/3617"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}