{"id":6532,"date":"2021-10-04T17:56:22","date_gmt":"2021-10-04T08:56:22","guid":{"rendered":"https:\/\/snowland.net\/wp\/?p=6532"},"modified":"2021-10-04T18:01:35","modified_gmt":"2021-10-04T09:01:35","slug":"certbot-centos6-oct2021","status":"publish","type":"post","link":"https:\/\/snowland.net\/wp\/2021\/10\/04\/certbot-centos6-oct2021\/","title":{"rendered":"CentOS6\u3067certbot\u3092\u4f7f\u3044\u7d9a\u3051\u308b"},"content":{"rendered":"\n<p>2021\u5e7410\u6708\u304b\u3089Let&#8217;s Encrypt\u306e\u4f7f\u3063\u3066\u3044\u308b\u30eb\u30fc\u30c8\u8a3c\u660e\u66f8\u304c\u5207\u308c\u305f\uff08\u5909\u66f4\u306b\u306a\u3063\u305f\uff09\u95a2\u4fc2\u3067\u3001\u53e4\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u4f7f\u3048\u306a\u3044\u8a71\u304c\u51fa\u3066\u304d\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a71\u3002CentOS6\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306fcertbot(-auto)\u3092\u7d99\u7d9a\u5229\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u3055\u3066\u56f0\u3063\u305f\u306d\u3068\u3002<br>\u3042\u3068\u3082\u30461\u3064\u30aa\u30de\u30b1\u3067fullchain.pem\u3068iOS\u3067\u306e\u554f\u984c\u3082\u6700\u5f8c\u306b\u3002<\/p>\n\n\n\n<p>\u5143\u3005certbot-auto\u3092\u4f7f\u3063\u3066Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4f7f\u3048\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br>1\u3064\u306fyum\u306e\u554f\u984c\u3002CentOS6\u306f\u30b5\u30dd\u30fc\u30c8\u304c\u5207\u308c\u305f\u306e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u9589\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u3078\u3093\u306f\u5404\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u4f7f\u308f\u308c\u3066\u3044\u305f mirrorlist.centos.org \u3092 vault.centos.org\u306b\u5909\u3048\u3066\u3084\u308c\u3070\u4e00\u5fdc\u4f7f\u3048\u307e\u3059\u3002<br>\u305d\u3057\u3066certbot-auto\u304c\u300cYour system is not supported by certbot-auto anymore.\u300d\u3068\u8a00\u3063\u3066\u304d\u3066\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u89e3\u6c7a\u306e\u305f\u3081\u3001\u5225\u306ecertbot\u3092\u3082\u3063\u3066\u304d\u3066\u4f7f\u3044\u307e\u3059\u3002Python3.6\u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3059\u3002<br>\u304c\u3001CentOS6\u306b\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>I<a href=\"https:\/\/repo.ius.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">US Community Project<\/a>\u3082CentOS6\u7528\u306f\u9589\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u308f\u3051\u3067pyenv\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<br>\u53c2\u8003\u30b5\u30a4\u30c8\uff1e<a rel=\"noreferrer noopener\" href=\"https:\/\/serv-ops.com\/knowledge\/open.knowledge\/view\/22\" target=\"_blank\">CentOS6 certbot-auto \u306e\u4ee3\u66ff\u65b9\u6cd5(pip) &#8211; Knowledge<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone git:\/\/github.com\/yyuu\/pyenv.git ~\/.pyenv\n<\/code><\/pre>\n\n\n\n<p>.bashrc\u306b\u8ffd\u52a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PYENV_ROOT=\"${HOME}\/.pyenv\"\nif &#91; -d \"${PYENV_ROOT}\" ]; then\n    export PATH=${PYENV_ROOT}\/bin:$PATH\n    eval \"$(pyenv init --path)\"\nfi<\/code><\/pre>\n\n\n\n<p>\u2191\u53c2\u8003\u30b5\u30a4\u30c8\u3067\u306feval\u306e\u884c\u304c pyenv init &#8211; \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u5909\u66f4\u3055\u308c\u305f\u3088\u3046\u3067\u3001&#8211;path\u306b\u3057\u306a\u3044\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306ePATH\u304c\u901a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source .bashrc\npyenv install 3.6.15\npyenv global 3.6.4\npython --version\n#\u21913.6.15\u306e\u8868\u793a\u3092\u78ba\u8a8d\npip install --upgrade pip\npip3 install certbot certnpt-apache\n#\u2191apache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u3044\u305f\u5834\u5408\u306fcertbot-apache\u3082\u5fc5\u8981\nwhich certbot\n#\u2191\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306e\u78ba\u8a8d<\/code><\/pre>\n\n\n\n<p>3.8\u3068\u304b\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u53e4\u3044\u3068\u5165\u308a\u307e\u305b\u3093\u306e\u3067\u8ae6\u3081\u30663.6\u7cfb\u306e\u6700\u65b0\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>certbot renew\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u304c\u3001apache\u30d7\u30e9\u30b0\u30a4\u30f3\u30822.2\u3078\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u7d42\u308f\u308b\u305e\u3068\u4e88\u544a\u304c\u3002<br>\u305d\u306e\u3046\u3061\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u3092\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u2026<br>\u3042\u3068certbot-auto\u306f\u81ea\u52d5\u5b9f\u884c\u3057\u3066\u308b\u3068\u601d\u3046\u306e\u3067\u305d\u306e\u3078\u3093\u306e\u8a2d\u5b9a\u3082which certbot\u3067PATH\u3092\u78ba\u8a8d\u3057\u3066\u66f8\u304d\u63db\u3048\u3092\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">fullchain.pem\u3067\u554f\u984c<\/h2>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3067\u8a3c\u660e\u66f8\u3092\u6307\u5b9a\u3059\u308b\u969b\u306b<br>SSLCertificateFile cert.pem<br>SSLCertificateKeyFile privkey.pem<br>SSLCertificateChainFile chain.pem<br>\u30683\u884c\u3067\u6307\u5b9a\u3057\u3066\u3044\u308c\u3070\u554f\u984c\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001fullchain.pem\u3092\u4f7f\u3063\u3066<br>SSLCertificateFile fullchain.pem<br>SSLCertificateKeyFile privkey.pem<br> \u306e2\u884c\u3067\u6307\u5b9a\u3057\u3066\u3044\u305f\u5834\u5408\u3001chain\u304c\u8aad\u307f\u53d6\u308c\u306a\u3044\u306e\u304b\u3001MacOS\u3068iOS\u3067\u306f\u53e4\u3044Let&#8217;s Encrypt\u306eRST Root CA X3\u304c\u53c2\u7167\u3055\u308c\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u5c11\u306a\u304f\u3068\u3082Windows\u3068Android\u3067\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>3\u884c\u3067\u5225\u306bchain.pem\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u6700\u65b0\u306eISRG Root X1\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067ChainFile\u3082\u3061\u3083\u3093\u3068\u6307\u5b9a\u3057\u3088\u3046\u3002<br>\u305d\u3057\u3066\u4f55\u3088\u308aCentOS6\u74b0\u5883\u304b\u3089\u629c\u3051\u3060\u305d\u3046\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2021\u5e7410\u6708\u304b\u3089Let&#8217;s Encrypt\u306e\u4f7f\u3063\u3066\u3044\u308b\u30eb\u30fc\u30c8\u8a3c\u660e\u66f8\u304c\u5207\u308c\u305f\uff08\u5909\u66f4\u306b\u306a\u3063\u305f\uff09\u95a2\u4fc2\u3067\u3001\u53e4\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u4f7f\u3048\u306a\u3044\u8a71\u304c\u51fa\u3066\u304d\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a71\u3002CentOS6\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306fcer &hellip; <a href=\"https:\/\/snowland.net\/wp\/2021\/10\/04\/certbot-centos6-oct2021\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":6534,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,8],"tags":[],"class_list":["post-6532","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comtech","category-server"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/snowland.net\/wp\/wp-content\/uploads\/2021\/10\/ssl-error.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6zwpu-1Hm","_links":{"self":[{"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/posts\/6532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/comments?post=6532"}],"version-history":[{"count":3,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/posts\/6532\/revisions"}],"predecessor-version":[{"id":6536,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/posts\/6532\/revisions\/6536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/media\/6534"}],"wp:attachment":[{"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/media?parent=6532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/categories?post=6532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/snowland.net\/wp\/wp-json\/wp\/v2\/tags?post=6532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}