
{"id":1621,"date":"2025-02-13T00:08:02","date_gmt":"2025-02-12T13:08:02","guid":{"rendered":"https:\/\/www.hogepiyo.com\/wp\/?p=1621"},"modified":"2025-02-13T00:08:04","modified_gmt":"2025-02-12T13:08:04","slug":"certbot-%e3%81%a7%e7%84%a1%e6%96%99%e3%81%ae-ssl-%e3%82%92%e8%87%aa%e5%8b%95%e7%99%ba%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.hogepiyo.com\/wp\/?p=1621","title":{"rendered":"Certbot \u3067\u7121\u6599\u306e SSL \u3092\u81ea\u52d5\u767a\u884c"},"content":{"rendered":"\n<p>Certbot \u3092\u4f7f\u7528\u3057\u3066 Let&#8217;s Encrypt \u304b\u3089\u7121\u6599\u306e SSL \u8a3c\u660e\u66f8\u3092\u767a\u884c\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<dl class=\"definition-table\">\n<dt>\u30b5\u30fc\u30d0\u30fc<\/dt>\n<dd>LXD \u30b2\u30b9\u30c8<\/dd>\n<dt>CPU<\/dt>\n<dd>2\u30b3\u30a2<\/dd>\n<dt>\u30e1\u30e2\u30ea\u30fc<\/dt>\n<dd>4GB<\/dd>\n<dt>OS<\/dt>\n<dd>Ubuntu Server 24.04 LTS 64Bit<\/dd>\n<\/dl>\n\n\n\n<figure class=\"wp-block-table\">\n<table style=\"width: 100%; height: 70px;\">\n<thead>\n<tr style=\"height: 36px;\">\n<th style=\"height: 36px;\">snap \u30d1\u30c3\u30b1\u30fc\u30b8<\/th>\n<th style=\"height: 36px;\">\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 34px;\">\n<td style=\"height: 34px;\"><span style=\"font-family: 'Noto Sans JP'; font-size: revert;\">certbot<\/span><\/td>\n<td style=\"height: 34px;\">\n<p>3.2.0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f353295611b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f353295611b\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\/#%E5%89%8D%E6%8F%90%E6%9D%A1%E4%BB%B6\" >\u524d\u63d0\u6761\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\/#%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\/#%E3%83%95%E3%82%A1%E3%82%A4%E3%82%A2%E3%82%A6%E3%82%A9%E3%83%BC%E3%83%AB%E3%82%92%E8%A8%AD%E5%AE%9A\" >\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\/#Certbot_%E3%82%92%E8%A8%AD%E5%AE%9A\" >Certbot \u3092\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%89%8D%E6%8F%90%E6%9D%A1%E4%BB%B6\"><\/span>\u524d\u63d0\u6761\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>SSL \u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b\u6761\u4ef6\u3068\u3057\u3066\u5916\u90e8\u304b\u3089\u30dd\u30fc\u30c8 80 \u3067\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 certbot \u3092\u30a4\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap install --classic certbot<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ln -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%95%E3%82%A1%E3%82%A4%E3%82%A2%E3%82%A6%E3%82%A9%E3%83%BC%E3%83%AB%E3%82%92%E8%A8%AD%E5%AE%9A\"><\/span>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 80 \u30dd\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 80\/tcp<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Certbot_%E3%82%92%E8%A8%AD%E5%AE%9A\"><\/span>Certbot \u3092\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo certbot certonly --standalone<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\nEnter email address (used for urgent renewal and security notices)\n (Enter 'c' to cancel): <strong>foo@example.com<\/strong>\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nPlease read the Terms of Service at:\nhttps:&#47;&#47;letsencrypt.org\/documents\/LE-SA-v1.4-April-3-2024.pdf\nYou must agree in order to register with the ACME server. Do you agree?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: <strong>Y<\/strong>\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nWould you be willing, once your first certificate is successfully issued, to\nshare your email address with the Electronic Frontier Foundation, a founding\npartner of the Let's Encrypt project and the non-profit organization that\ndevelops Certbot? We'd like to send you email about our work encrypting the web,\nEFF news, campaigns, and ways to support digital freedom.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: <strong>N<\/strong>\nAccount registered.\nPlease enter the domain name(s) you would like on your certificate (comma and\/or\nspace separated) (Enter 'c' to cancel): <strong>foo.example.com<\/strong>\nRequesting a certificate for foo.example.com\n\nSuccessfully received certificate.\nCertificate is saved at: \/etc\/letsencrypt\/live\/foo.example.com\/fullchain.pem\nKey is saved at:         \/etc\/letsencrypt\/live\/foo.example.com\/privkey.pem\nThis certificate expires on 2025-05-03.\nThese files will be updated when the certificate renews.\nCertbot has set up a scheduled task to automatically renew this certificate in the background.\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nIf you like Certbot, please consider supporting our work by:\n * Donating to ISRG \/ Let's Encrypt:   https:\/\/letsencrypt.org\/donate\n * Donating to EFF:                    https:\/\/eff.org\/donate-le\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<\/code><\/pre>\n\n\n\n<p>\/etc\/letsencrypt\/live\/foo.example.com\/fullchain.pem \u306b\u8a3c\u660e\u66f8\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u7b49\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u964d\u306f\u8a3c\u660e\u66f8\u306e\u671f\u9650\u304c\u5207\u308c\u308b\u524d\u306b\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/certbot.eff.org\/instructions?ws=other&amp;os=snap&amp;tab=standard\" title=\"\">Certbot Instructions | Certbot<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Certbot \u3092\u4f7f\u7528\u3057\u3066 Let&#8217;s Encrypt \u304b\u3089\u7121\u6599\u306e SSL \u8a3c\u660e\u66f8\u3092\u767a\u884c\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc LXD \u30b2\u30b9\u30c8 CPU 2\u30b3\u30a2 \u30e1\u30e2\u30ea\u30fc 4GB OS Ubuntu Server 24.0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1621\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Certbot \u3067\u7121\u6599\u306e SSL \u3092\u81ea\u52d5\u767a\u884c&#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":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[260],"tags":[268,264,266],"class_list":["post-1621","post","type-post","status-publish","format-standard","hentry","category-ubuntu-24-04-lts-server","tag-certbot","tag-ubuntu-24-04","tag--ja"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1621"}],"version-history":[{"count":6,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions"}],"predecessor-version":[{"id":1630,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions\/1630"}],"wp:attachment":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}