{"id":366,"date":"2016-07-06T17:14:18","date_gmt":"2016-07-06T08:14:18","guid":{"rendered":"http:\/\/clouds.tokyo\/blog\/?p=366"},"modified":"2017-03-01T21:13:45","modified_gmt":"2017-03-01T12:13:45","slug":"linux_ssl_le","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/linux_ssl_le\/","title":{"rendered":"\u3010Linux\u3011\u3068\u3046\u3068\u3046SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308b\u6642\u4ee3\u306b"},"content":{"rendered":"<p>\u6614\u306fSSL\u8a3c\u660e\u66f8\u306f\u500b\u4eba\u304c\u6c17\u8efd\u306b\u5c0e\u5165\u3067\u304d\u308b\u3088\u3046\u306a\u5b89\u3044\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u4eca\u306f\u5343\u5186\u304f\u3089\u3044\u3067\u53d6\u5f97\u3067\u304d\u308b\u3082\u306e\u304c\u3042\u308b\u306e\u3067\u500b\u4eba\u3067\u3082\u6c17\u8efd\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3068\u3046\u3068\u3046\u3001SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308b\u6642\u4ee3\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/letsencrypt.jp\/\" target=\"_blank\">Let&#8217;s Encrypt \u7dcf\u5408\u30dd\u30fc\u30bf\u30eb\uff08\u65e5\u672c\u8a9e\uff09<\/a><\/p>\n<p>\u958b\u767a\u30b5\u30fc\u30d0\u30fc\uff08CentOS6.5\uff09\u3067\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\uff08\u4e0a\u8a18\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u74b0\u5883\u3054\u3068\u306b\u5c0e\u5165\u65b9\u6cd5\u306e\u8aac\u660e\u304c\u3042\u308a\u307e\u3059\uff09<\/p>\n<p>\u307e\u305a\u3001EPEL\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0\u304c\u5fc5\u8981\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<pre>\r\nyum install epel-release\r\n<\/pre>\n<p>\u3053\u308c\u306f\u3059\u3067\u306b\u8ffd\u52a0\u6e08\u307f\u3067\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8\u3092\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nwget https:\/\/dl.eff.org\/certbot-auto\r\n<\/pre>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u5b9f\u884c\u6a29\u9650\u3092\u3064\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nchmod +x certbot-auto\r\n.\/certbot-auto\r\n<\/pre>\n<p>\u30c9\u30e1\u30a4\u30f3\u540d\u3068\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u7b54\u3048\u307e\u3059\u3002<\/p>\n<pre>\r\nNo names were found in your configuration files. Please enter in your domain\r\nname(s) (comma and\/or space separated)  (Enter 'c' to cancel):\r\nclouds.tokyo\r\n\r\nEnter email address (used for urgent renewal and security notices) (Enter 'c' to\r\ncancel):\r\n*****@clouds.tokyo\r\n\r\n\uff08\u898f\u7d04\u306b\u540c\u610f\u3059\u308b\u304b\uff09\r\n(A)gree\/(C)ancel\r\nA\r\n\r\n\uff08\u30e1\u30fc\u30eb\u3092\u9001\u3063\u3066\u3088\u3044\u304b\uff09\r\n(Y)es\/(N)o\r\nY\r\n\r\nIMPORTANT NOTES:\r\n - Unable to install the certificate\r\n - Congratulations! Your certificate and chain have been saved at\r\n   \/etc\/letsencrypt\/live\/clouds.tokyo\/fullchain.pem. Your cert will\r\n   expire on ****-**-**. To obtain a new or tweaked version of this\r\n   certificate in the future, simply run certbot-auto again with the\r\n   \"certonly\" option. To non-interactively renew *all* of your\r\n   certificates, run \"certbot-auto renew\"\r\n - If you lose your account credentials, you can recover through\r\n   e-mails sent to *****@clouds.tokyo.\r\n - Your account credentials have been saved in your Certbot\r\n   configuration directory at \/etc\/letsencrypt. You should make a\r\n   secure backup of this folder now. This configuration directory will\r\n   also contain certificates and private keys obtained by Certbot so\r\n   making regular backups of this folder is ideal.\r\n<\/pre>\n<p>\u3082\u3046\u3053\u308c\u3067\u8a3c\u660e\u66f8\u304c\u53d6\u5f97\u3067\u304d\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\n\u8a8d\u8a3c\u30e1\u30fc\u30eb\u304c\u6765\u3066\u3044\u305f\u306e\u3067\u30e1\u30fc\u30eb\u5185\u306eURL\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n\/etc\/letsencrypt\/live\/clouds.tokyo\r\n<\/pre>\n<p>\u3092\u898b\u308b\u3068\u3001\u305f\u3057\u304b\u306b\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u7b49\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306fApache\u306e\u8a2d\u5b9a\u3092\u7de8\u96c6\u3057\u3066\u3001\u53d6\u5f97\u3057\u305f\u8a3c\u660e\u66f8\u306b\u5207\u308a\u66ff\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre>\r\nSSLCertificateFile \/etc\/letsencrypt\/live\/clouds.tokyo\/cert.pem\r\nSSLCertificateKeyFile \/etc\/letsencrypt\/live\/clouds.tokyo\/privkey.pem\r\nSSLCACertificateFile \/etc\/letsencrypt\/live\/clouds.tokyo\/fullchain.pem\r\n<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u8a3c\u660e\u66f8\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001<\/p>\n<pre>\r\n\u8a8d\u8a3c\u5c40: Let's Encrypt\r\n<\/pre>\n<p>\u304a\u304a\u3001\u3067\u304d\u3066\u308b\uff01<br \/>\n\u3053\u3093\u306a\u306b\u7c21\u5358\u3060\u3068\u306f\u601d\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u6709\u52b9\u671f\u9650\u304c90\u65e5\u3068\u77ed\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u5b9a\u671f\u7684\u306b<\/p>\n<pre>\r\n.\/certbot-auto renew\r\nservice httpd restart\r\n<\/pre>\n<p>\u3092\u3059\u308c\u3070\u3044\u3044\u307f\u305f\u3044\u3067\u3059\u306d\u3002<br \/>\ncron\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u3001\u3082\u3046SSL\u8a3c\u660e\u66f8\u66f4\u65b0\u4f5c\u696d\u306b\u7169\u308f\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3076\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6614\u306fSSL\u8a3c\u660e\u66f8\u306f\u500b\u4eba\u304c\u6c17\u8efd\u306b\u5c0e\u5165\u3067\u304d\u308b\u3088\u3046\u306a\u5b89\u3044\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u4eca\u306f\u5343\u5186\u304f\u3089\u3044\u3067\u53d6\u5f97\u3067\u304d\u308b\u3082\u306e\u304c\u3042\u308b\u306e\u3067\u500b\u4eba\u3067\u3082\u6c17\u8efd\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3088\u306d\u3002 \u305d\u3057\u3066\u3068\u3046\u3068\u3046\u3001SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308b\u6642\u4ee3\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/linux_ssl_le\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Linux\u3011\u3068\u3046\u3068\u3046SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308b\u6642\u4ee3\u306b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[95,119,120],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pezW3u-5U","jetpack-related-posts":[{"id":937,"url":"https:\/\/clouds.tokyo\/blog\/linux_ssl_revoke\/","url_meta":{"origin":366,"position":0},"title":"\u3010Linux\u3011Let&#8217;s Encrypt\u3067\u53d6\u5f97\u3057\u305f\u8a3c\u660e\u66f8\u3092\u524a\u9664\u3057\u3066\u66f4\u65b0\u5bfe\u8c61\u304b\u3089\u306f\u305a\u3059","author":"yamamoto","date":"2018\u5e741\u670829\u65e5","format":false,"excerpt":"SSL\u8a3c\u660e\u66f8\u3092\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308bLet's Encrypt\u3067\u3001 \u30b5\u30fc\u30d0\u30fc\u79fb\u884c\u3084\u30b5\u30a4\u30c8\u9589\u9396\u306a\u3069\u306b\u3088\u3063\u3066\u8a3c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":759,"url":"https:\/\/clouds.tokyo\/blog\/linux_lets_cent5\/","url_meta":{"origin":366,"position":1},"title":"\u3010Linux\u3011CentOS5\u3067Let&#8217;s Encrypt\u3092\u4f7f\u3063\u3066\u30de\u30eb\u30c1\u30c9\u30e1\u30a4\u30f3\u306eSSL\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b","author":"yamamoto","date":"2017\u5e746\u670821\u65e5","format":false,"excerpt":"CentOS5\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u30022010\u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u65b0\u3057\u3044OS\u306b\u4e57\u308a\u63db\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1362,"url":"https:\/\/clouds.tokyo\/blog\/getssl-ssl\/","url_meta":{"origin":366,"position":2},"title":"\u3010Linux\u3011certbot\u304c\u4f7f\u3048\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u3067\u3001getssl\u3067Let\u2019s Encrypt\u306e\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b","author":"yamamoto","date":"2022\u5e7410\u67088\u65e5","format":false,"excerpt":"OS\u304c\u53e4\u3044\u304b\u3089\u3068\u8a00\u3063\u3066\u3001\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u7c21\u5358\u306b\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3067\u304d\u306a\u3044\u3067\u3059\u3088\u306d\u3002 \u79c1\u304c\u4fdd\u5b88\u3057\u3066\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":941,"url":"https:\/\/clouds.tokyo\/blog\/linux_python27\/","url_meta":{"origin":366,"position":3},"title":"\u3010Linux\u3011CentOS6\u306bPython2.7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u81ea\u52d5\u7684\u306b\u6709\u52b9\u306b\u3059\u308b","author":"yamamoto","date":"2018\u5e741\u670829\u65e5","format":false,"excerpt":"\u5148\u65e5Let's Encrypt\u306e\u30ed\u30b0\u306bWarning\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002 WARNING: couldn\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1618,"url":"https:\/\/clouds.tokyo\/blog\/certbot-error\/","url_meta":{"origin":366,"position":4},"title":"\u3010Let&#8217;s Encrypt\u3011certbot renew \u3067 Type:  unauthorized \u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3057\u305f","author":"yamamoto","date":"2023\u5e7411\u670827\u65e5","format":false,"excerpt":"certbot renew\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u30c9\u30e1\u30a4\u30f3\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u3044\u308d\u3044\u308d\u3068\u8a66\u3059\u305f\u3073\u306b\u30a8\u30e9\u30fc\u306e\u7a2e\u985e\u304c\u5909\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":996,"url":"https:\/\/clouds.tokyo\/blog\/kas_ssl_scan\/","url_meta":{"origin":366,"position":5},"title":"\u3010\u30ab\u30b9\u30da\u30eb\u30b9\u30ad\u30fc\u3011\u30b5\u30a4\u30c8\u306eSSL\u8a3c\u660e\u66f8\u304c\u52dd\u624b\u306b\u5909\u66f4\u3055\u308c\u308b\u306e\u3092\u505c\u6b62\u3059\u308b","author":"yamamoto","date":"2018\u5e743\u670823\u65e5","format":false,"excerpt":"\u30ab\u30b9\u30da\u30eb\u30b9\u30ad\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a6\u30a7\u30d6\u306eSSL\u901a\u4fe1\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/366"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":8,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/366\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/366\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}