{"id":1300,"date":"2025-11-03T22:33:12","date_gmt":"2025-11-03T13:33:12","guid":{"rendered":"https:\/\/eng.miteel.net\/?page_id=1300"},"modified":"2025-11-09T11:37:30","modified_gmt":"2025-11-09T02:37:30","slug":"ssl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92%e5%be%97%e3%81%a6https%e3%82%92%e4%bd%bf%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"page","link":"https:\/\/eng.miteel.net\/?page_id=1300","title":{"rendered":"SSL\u8a3c\u660e\u66f8\u3092\u5f97\u3066https\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"\n<p>\u3010SSL\u8a3c\u660e\u66f8\u3092\u5f97\u3066https\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3011<\/p>\n\n\n\n<p>\u203b\u3000certroot\u3067\u8a3c\u660e\u66f8\u3092\u5f97\u308b\u305f\u3081\u306b\u306f\u3000Port80\u3067<br>\u3000\u3000\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u30c0\u30e1<br>\u3000\u3000\u5f53\u7136\u81ea\u52d5\u66f4\u65b0\u3082 Port80\u3000\u304c\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3000\u5e38\u306b\u901a\u3057\u3066<br>\u3000\u3000\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308b<br>\u3000\u3000\u4f46\u3057\u3001\u5f97\u305f\u8a3c\u660e\u66f8\u306f\u30dd\u30fc\u30c8\u756a\u53f7\u306b\u95a2\u4fc2\u306a\u304f\u4f7f\u7528\u53ef\u80fd<br>\u3000\u3000\u305d\u306e\u305f\u3081\u3001ssl\u901a\u4fe1\u306b\u304a\u3044\u3066\u306f\u3001Port\u3092\u81ea\u7531\u306b\u8a2d\u5b9a\u3067\u304d\u308b<\/p>\n\n\n\n<p>\u2460\u3000\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br>sudo apt install certbot<\/p>\n\n\n\n<p>\u2461\u3000\u8a3c\u660e\u66f8\u3092\u3068\u3063\u3068\u304f\u5834\u6240\u3092\u78ba\u4fdd<br>\u305f\u3076\u3093\u3001owner \u306f www-data \u306b\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u3088\u3044<br>\u4f8b\u3048\u3070\u3000\/usr2\/local\/ssl<br>\u305d\u3057\u3066\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3000\/.well-known\/acme-challenge\/<br>\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3000\u203b\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u306b\u5fc5\u8981\u3089\u3057\u3044<br>\u3000\u300a\u4f8b\u300b<br>location \/.well-known\/acme-challenge\/ {<br>root \/usr2\/local\/ssl;<br>}<br>\u3053\u306e\u5834\u5408\u3000http:\/\/var.foo.com\/.well-known\/acme-challenge\/<br>\u306e\u30d5\u30a1\u30a4\u30eb\u4f4d\u7f6e\u306f\u3000\/usr2\/local\/ssl\/.well-known\/acme-challenge\/index.html<br>\u3068\u306a\u308b\u306e\u3067\u6ce8\u610f<\/p>\n\n\n\n<p>\u2462\u3000\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b\u7df4\u7fd2(\u4e00\u65e5\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3067\u304d\u56de\u6570\u5236\u9650\u304c\u3042\u308b\u305f\u3081)<br><code>sudo certbot certonly --webroot --dry-run<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enter email address:<\/code><\/pre>\n\n\n\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(Y)es\/(N)o:<\/code><\/pre>\n\n\n\n<p>Y\u3000\u3092\u5165\u529b<\/p>\n\n\n\n<p>\u3000\u3000(Y)es\/(N)o:<br>N \u3092\u5165\u529b<\/p>\n\n\n\n<p>\u3000\u3000Please enter in your domain name(s):<br>\u8907\u6570\u306eURL\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u304c\u2026\u3000var.foo.com \u5f62\u5f0f\u3067\u5165\u529b<\/p>\n\n\n\n<p>\u3000\u3000Input the webroot for var.foo.com:<br>\u3053\u3053\u306b\u306f\u4f8b\u306e\u5834\u5408\u3000\/usr2\/local\/ssl\u3000\u3068\u5165\u308c\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The dry run was successful.<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u304f\u308c\u3070\u3044\u3044\u307f\u305f\u3044<\/p>\n\n\n\n<p>\u2463\u3000\u7df4\u7fd2\u306b\u6210\u529f\u3057\u305f\u3089\u3001\u8a3c\u660e\u66f8\u3092\u53d7\u3051\u308b<\/p>\n\n\n\n<p><code>sudo certbot certonly --webroot<\/code><\/p>\n\n\n\n<p>\u8a3c\u660e\u66f8\u306f<br>\/etc\/letsencrypt\/live\/var.foo.com \u306b\u4fdd\u5b58\u3055\u308c\u308b<\/p>\n\n\n\n<p>\u2464\u3000\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092nginx\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># SSL\u8a3c\u660e\u66f8\u306e\u8a2d\u5b9a\nssl_certificate \/etc\/letsencrypt\/live\/var.foo.com\/fullchain.pem;\n# SSL\u79d8\u5bc6\u9375\u306e\u8a2d\u5b9a\nssl_certificate_key \/etc\/letsencrypt\/live\/var.foo.com\/privkey.pem;\n# SSL\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6307\u5b9a\nssl_protocols TLSv1 TLSv1.1 TLSv1.2;<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010SSL\u8a3c\u660e\u66f8\u3092\u5f97\u3066https\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3011 \u203b\u3000certroot\u3067\u8a3c\u660e\u66f8\u3092\u5f97\u308b\u305f\u3081\u306b\u306f\u3000Port80\u3067\u3000\u3000\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u30c0\u30e1\u3000\u3000\u5f53\u7136\u81ea\u52d5\u66f4\u65b0\u3082 Port80\u3000\u304c\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3000\u5e38\u306b\u901a\u3057\u3066\u3000\u3000\u7f6e\u304f\u5fc5\u8981 &hellip; <a href=\"https:\/\/eng.miteel.net\/?page_id=1300\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">SSL\u8a3c\u660e\u66f8\u3092\u5f97\u3066https\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":502,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1300","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/1300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1300"}],"version-history":[{"count":2,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/1300\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/1300\/revisions\/1304"}],"up":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/502"}],"wp:attachment":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}