{"id":15851,"date":"2024-07-06T21:36:23","date_gmt":"2024-07-06T18:06:23","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=15851"},"modified":"2024-07-06T21:36:23","modified_gmt":"2024-07-06T18:06:23","slug":"how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/","title":{"rendered":"Ubuntu 18.04\u3067Let&#039;s Encrypt\u3092\u4f7f\u3063\u3066Nginx\u3092\u4fdd\u8b77\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u5c0e\u5165<\/h2>\n<p>Let&#039;s Encrypt\u306f\u3001\u7121\u6599\u306eTLS\/SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001Web\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u6697\u53f7\u5316\u3055\u308c\u305fHTTPS\u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u8a3c\u660e\u6a5f\u95a2\uff08CA\uff09\u3067\u3059\u3002Let&#039;s Encrypt\u306f\u3001\u5fc5\u8981\u306a\u624b\u9806\u306e\u307b\u3068\u3093\u3069\uff08\u3059\u3079\u3066\u3067\u306f\u306a\u3044\u306b\u3057\u3066\u3082\uff09\u3092\u81ea\u52d5\u5316\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300cCertbot\u300d\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u7c21\u7d20\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u73fe\u5728\u3001Apache\u3068Nginx\u306b\u304a\u3051\u308b\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u306f\u5b8c\u5168\u306b\u81ea\u52d5\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002.<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Certbot \u3092\u4f7f\u7528\u3057\u3066\u3001Ubuntu 18.04 \u4e0a\u306e Nginx \u7528\u306e\u7121\u6599 SSL \u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3001\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002.<\/p>\n<h5 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">\u524d\u63d0\u6761\u4ef6<\/h5>\n<ul>\n<li>Ubuntu 18.04 \u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc \u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u5f93\u3063\u3066\u3001\u975e\u30eb\u30fc\u30c8 sudo \u30e6\u30fc\u30b6\u30fc\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u542b\u3080 Ubuntu 18.04 \u30b5\u30fc\u30d0\u30fc\u304c\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3057\u305f\u3002.<\/li>\n<li>\u5b8c\u5168\u306b\u767b\u9332\u3055\u308c\u305f\u30c9\u30e1\u30a4\u30f3\u540d \u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001your_domain \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c9\u30e1\u30a4\u30f3\u540d\u306fNamecheap\u3067\u8cfc\u5165\u3059\u308b\u3053\u3068\u3082\u3001Freenom\u3067\u7121\u6599\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3001\u304a\u597d\u307f\u306e\u30c9\u30e1\u30a4\u30f3\u30ec\u30b8\u30b9\u30c8\u30e9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002.<\/li>\n<li>\u4ee5\u4e0b\u306e2\u3064\u306eDNS\u30ec\u30b3\u30fc\u30c9\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8ffd\u52a0\u65b9\u6cd5\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001DigitalOcean DNS\u306e\u3053\u3061\u3089\u306e\u7d39\u4ecb\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002.<\/li>\n<li>your_domain \u304c\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30d6\u30ea\u30c3\u30af IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3059\u30ec\u30b3\u30fc\u30c9\u3002.<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30d6\u30ea\u30c3\u30af IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3059 www.your_domain \u3092\u542b\u3080\u30ec\u30b3\u30fc\u30c9\u3002.<\/li>\n<li>Nginx\u306f\u3001Ubuntu 18.04\u3078\u306eNginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u30c9\u30e1\u30a4\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3082\u3001\/etc\/nginx\/sites-available\/your_domain\u3092\u4f8b\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002.<\/li>\n<\/ul>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-1-%d9%86%d8%b5%d8%a8-certbot\">\u30b9\u30c6\u30c3\u30d71 \u2013 Certbot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>Let&#039;s Encrypt \u3092\u4f7f\u7528\u3057\u3066 SSL \u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b Certbot \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3059\u3002.<\/p>\n<p>Certbot \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u3001Canonical (Ubuntu \u306e\u958b\u767a\u5143) \u304c\u6700\u521d\u306b\u958b\u767a\u3057\u3001\u73fe\u5728\u3067\u306f\u591a\u304f\u306e Linux \u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d1\u30c3\u30b1\u30fc\u30b8 \u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3042\u308b snap \u3092\u4f7f\u7528\u3057\u3066\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo snap install --classic certbot<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u51fa\u529b\u306b\u306f\u3001Certbot \u306e\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6210\u529f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\ncertbot 1.21.0 from Certbot Project (certbot-eff\u2713) installed<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u3001\/usr\/bin\/\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u3001\u65b0\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\/snap\/bin\/certbot\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001certbot\u30b3\u30de\u30f3\u30c9\u304c\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u4ee5\u4e0b\u306eln\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001\u30cf\u30fc\u30c9\u30ea\u30f3\u30af\u3067\u306f\u306a\u304f\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\uff08\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\uff09\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e-s\u30d5\u30e9\u30b0\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ln -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/code><\/pre>\n<\/div>\n<p>Certbot \u306f\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001Nginx \u306e SSL \u3092\u69cb\u6210\u3059\u308b\u524d\u306b\u3001\u3044\u304f\u3064\u304b\u306e Nginx \u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-2-%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c-nginx\">\u30b9\u30c6\u30c3\u30d72 \u2013 Nginx\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>Certbot \u304c SSL \u3092\u81ea\u52d5\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001Nginx \u8a2d\u5b9a\u5185\u306e\u6b63\u3057\u3044 server \u30d6\u30ed\u30c3\u30af\u3092\u898b\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u8a3c\u660e\u66f8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u306b\u4e00\u81f4\u3059\u308b server_name \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002.<\/p>\n<p>Nginx \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc \u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u624b\u9806\u306b\u5f93\u3046\u3068\u3001\/etc\/nginx\/sites-available\/your_domain \u306b\u30c9\u30e1\u30a4\u30f3\u306e\u30b5\u30fc\u30d0\u30fc \u30d6\u30ed\u30c3\u30af\u304c\u4f5c\u6210\u3055\u308c\u3001server_name \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u9069\u5207\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002.<\/p>\n<p>\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001nano \u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8 \u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30c9\u30e1\u30a4\u30f3\u306e\u30b5\u30fc\u30d0\u30fc \u30d6\u30ed\u30c3\u30af \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/nginx\/sites-available\/your_domain<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u65e2\u5b58\u306eserver_name\u884c\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>...\r\nserver_name your_domain www.your_domain;\r\n...<\/code><\/pre>\n<\/div>\n<p>\u305d\u3046\u3067\u3042\u308c\u3070\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u7d42\u4e86\u3057\u3066\u6b21\u306e\u624b\u9806\u306b\u9032\u307f\u307e\u3059\u3002.<\/p>\n<p>\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4e00\u81f4\u3059\u308b\u3088\u3046\u306b\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Ctrl + X\u3001Y\u3001Enter\u306e\u9806\u306b\u62bc\u3059\u3053\u3068\u3067\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>\u6b21\u306b\u3001\u69cb\u6210\u7de8\u96c6\u306e\u69cb\u6587\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nginx -t<\/code><\/pre>\n<\/div>\n<p>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5ea6\u958b\u304d\u3001\u8aa4\u5b57\u8131\u5b57\u3084\u6587\u5b57\u629c\u3051\u304c\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6587\u304c\u6b63\u3057\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001Nginx\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl reload nginx<\/code><\/pre>\n<\/div>\n<p>Certbot \u306f\u6b63\u3057\u3044\u30b5\u30fc\u30d0\u30fc \u30d6\u30ed\u30c3\u30af\u3092\u898b\u3064\u3051\u3066\u66f4\u65b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002.<\/p>\n<p>\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u66f4\u65b0\u3057\u3066 HTTPS \u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-3-%d8%a7%d8%ac%d8%a7%d8%b2%d9%87-%d8%af%d8%a7%d8%af%d9%86-%d8%a8%d9%87-https-%d8%a7%d8%b2-%d8%b7%d8%b1%db%8c%d9%82-%d9%81%d8%a7%db%8c%d8%b1%d9%88%d8%a7%d9%84\">\u30b9\u30c6\u30c3\u30d73 \u2013 \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7d4c\u7531\u3067HTTPS\u3092\u8a31\u53ef\u3059\u308b<\/h2>\n<p>\u524d\u63d0\u6761\u4ef6\u30ac\u30a4\u30c9\u3067\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306bufw\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001HTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5e78\u3044\u306a\u3053\u3068\u306b\u3001Nginx\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306bufw\u306b\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u767b\u9332\u3057\u307e\u3059\u3002.<\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u73fe\u5728\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw status<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u3001Web \u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306f HTTP \u306e\u307f\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\nStatus: active\r\nTo Action From\r\n-- ------ ----\r\nOpenSSH ALLOW Anywhere \r\nNginx HTTP ALLOW Anywhere \r\nOpenSSH (v6) ALLOW Anywhere (v6) \r\nNginx HTTP (v6) ALLOW Anywhere (v6)<\/code><\/pre>\n<\/div>\n<p>\u8ffd\u52a0\u306e HTTPS \u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u306b\u306f\u3001\u5b8c\u5168\u306a Nginx \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u3001\u8ffd\u52a0\u306e Nginx HTTP \u6a29\u9650\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw allow 'Nginx Full'\r\nsudo ufw delete allow 'Nginx HTTP'<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u3001ufw status \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u65b0\u3057\u3044\u30eb\u30fc\u30eb\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw status<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\nStatus: active\r\nTo Action From\r\n-- ------ ----\r\nOpenSSH ALLOW Anywhere\r\nNginx Full ALLOW Anywhere\r\nOpenSSH (v6) ALLOW Anywhere (v6)\r\nNginx Full (v6) ALLOW Anywhere (v6)<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u3001Certbot \u3092\u5b9f\u884c\u3057\u3066\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-4-%d8%af%d8%b1%db%8c%d8%a7%d9%81%d8%aa-%da%af%d9%88%d8%a7%d9%87%db%8c-ssl\">\u30b9\u30c6\u30c3\u30d74 \u2013 SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>Certbot\u306f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4ecb\u3057\u3066SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u8907\u6570\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002Nginx\u30d7\u30e9\u30b0\u30a4\u30f3\u306fNginx\u3092\u518d\u8a2d\u5b9a\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\">sudo certbot --nginx -d your_domain -d your_domain<\/pre>\n<\/div>\n<p>\u3053\u308c\u306f\u3001\u2013nginx \u62e1\u5f35\u5b50\u3092\u4f7f\u7528\u3057\u3066 certbot \u3092\u5b9f\u884c\u3057\u3001-d \u3092\u4f7f\u7528\u3057\u3066\u8a3c\u660e\u66f8\u3092\u6709\u52b9\u306b\u3059\u308b\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002.<\/p>\n<p>certbot \u3092\u521d\u3081\u3066\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u5165\u529b\u3068\u5229\u7528\u898f\u7d04\u3078\u306e\u540c\u610f\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u5165\u529b\u3059\u308b\u3068\u3001certbot \u306f Let&#039;s Encrypt \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u30c9\u30e1\u30a4\u30f3\u306e\u8a3c\u660e\u66f8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002\u6210\u529f\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Output\r\nSuccessfully received certificate.\r\nCertificate is saved at: \/etc\/letsencrypt\/live\/your_domain\/fullchain.pem\r\nKey is saved at: \/etc\/letsencrypt\/live\/your_domain\/privkey.pem\r\nThis certificate expires on 2022-01-27.\r\nThese files will be updated when the certificate renews.\r\nCertbot has set up a scheduled task to automatically renew this certificate in the background.\r\nDeploying certificate\r\nSuccessfully deployed certificate for your_domain to \/etc\/nginx\/sites-enabled\/your_domain\r\nSuccessfully deployed certificate for www.your_domain to \/etc\/nginx\/sites-enabled\/your_domain\r\nCongratulations! You have successfully enabled HTTPS on https:\/\/your_domain and https:\/\/www.your_domain\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nIf you like Certbot, please consider supporting our work by:\r\n* Donating to ISRG \/ Let's Encrypt: https:\/\/letsencrypt.org\/donate\r\n* Donating to EFF: https:\/\/eff.org\/donate-le\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<\/code><\/pre>\n<\/div>\n<p>\u8a3c\u660e\u66f8\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002https:\/\/ \u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b5\u30a4\u30c8\u304c\u9069\u5207\u306b\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u793a\u3055\u308c\u3001\u901a\u5e38\u306f\u7dd1\u8272\u306e\u9375\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002SSL Labs \u306e\u30b5\u30fc\u30d0\u30fc\u30c6\u30b9\u30c8\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3068\u3001A\u30b9\u30b3\u30a2\u304c\u5f97\u3089\u308c\u307e\u3059\u3002.<\/p>\n<p>SSL \u8a3c\u660e\u66f8\u3092\u53d7\u3051\u53d6\u3063\u305f\u3089\u3001\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u3059\u3002.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-5-%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d8%aa%d9%85%d8%af%db%8c%d8%af-%d8%ae%d9%88%d8%af%da%a9%d8%a7%d8%b1-certbot\">\u30b9\u30c6\u30c3\u30d75 \u2013 Certbot\u81ea\u52d5\u66f4\u65b0\u306e\u691c\u8a3c<\/h2>\n<p>Let&#039;s Encrypt \u306e\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9593\u306f90\u65e5\u9593\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u3092\u81ea\u52d5\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f certbot \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001\/etc\/cron.d \u306b\u66f4\u65b0\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f1\u65e5\u306b2\u56de\u5b9f\u884c\u3055\u308c\u3001\u6709\u52b9\u671f\u9650\u304c30\u65e5\u4ee5\u5185\u306b\u306a\u308b\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3057\u307e\u3059\u3002.<\/p>\n<p>\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u306b\u306f\u3001certbot \u3092\u4f7f\u7528\u3057\u3066\u30c9\u30e9\u30a4 \u30e9\u30f3\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo certbot renew --dry-run<\/code><\/pre>\n<\/div>\n<p>\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u3051\u308c\u3070\u3001\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001Certbot \u304c\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3057\u3001\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b Nginx \u3092\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u81ea\u52d5\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001Let&#039;s Encrypt \u306f\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3001\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u304c\u8fd1\u3065\u304f\u3068\u901a\u77e5\u3057\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">\u7d50\u679c<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Let&#039;s Encrypt \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 certbot \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30c9\u30e1\u30a4\u30f3\u306e SSL \u8a3c\u660e\u66f8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u3053\u308c\u3089\u306e\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b Nginx \u3092\u8a2d\u5b9a\u3057\u3001\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002Certbot \u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8cea\u554f\u304c\u3042\u308b\u5834\u5408\u306f\u3001Certbot \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002.<\/p>","protected":false},"excerpt":{"rendered":"\u306f\u3058\u3081\u306b Let&#039;s Encrypt \u306f\u3001\u7121\u6599\u306e TLS\/SSL \u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u8a3c\u660e\u6a5f\u95a2 (CA) \u3067\u3059\u3002","protected":false},"author":1,"featured_media":15852,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let's Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,324,369],"tags":[411,404,368],"class_list":{"0":"post-15851","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-security","9":"category-os","10":"tag-nginx","11":"tag-security","12":"tag-ubuntu"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#039;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#039;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 Let\u2019s Encrypt \u06cc\u06a9 \u0645\u0631\u062c\u0639 \u0635\u062f\u0648\u0631 \u06af\u0648\u0627\u0647\u06cc\u0646\u0627\u0645\u0647 (CA) \u0627\u0633\u062a \u06a9\u0647 \u0631\u0627\u0647\u06cc \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0648 \u0646\u0635\u0628 \u06af\u0648\u0627\u0647\u06cc\u200c\u0647\u0627\u06cc \u0631\u0627\u06cc\u06af\u0627\u0646 TLS\/SSL&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-06T18:06:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#8217;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645\",\"datePublished\":\"2024-07-06T18:06:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/\"},\"wordCount\":141,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06204200\\\/nginx.jpg\",\"keywords\":[\"nginx\",\"Security\",\"Ubuntu\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0627\u0645\u0646\u06cc\u062a\",\"\u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/\",\"name\":\"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let's Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06204200\\\/nginx.jpg\",\"datePublished\":\"2024-07-06T18:06:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06204200\\\/nginx.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/07\\\/06204200\\\/nginx.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#8217;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/ja\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu 18.04\u3067Let&#039;s Encrypt\u3092\u4f7f\u3063\u3066Nginx\u3092\u4fdd\u8b77\u3059\u308b\u65b9\u6cd5 - ITPiran\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/","og_locale":"ja_JP","og_type":"article","og_title":"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let's Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 Let\u2019s Encrypt \u06cc\u06a9 \u0645\u0631\u062c\u0639 \u0635\u062f\u0648\u0631 \u06af\u0648\u0627\u0647\u06cc\u0646\u0627\u0645\u0647 (CA) \u0627\u0633\u062a \u06a9\u0647 \u0631\u0627\u0647\u06cc \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0648 \u0646\u0635\u0628 \u06af\u0648\u0627\u0647\u06cc\u200c\u0647\u0627\u06cc \u0631\u0627\u06cc\u06af\u0627\u0646 TLS\/SSL&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-07-06T18:06:23+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#8217;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645","datePublished":"2024-07-06T18:06:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/"},"wordCount":141,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg","keywords":["nginx","Security","Ubuntu"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0627\u0645\u0646\u06cc\u062a","\u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/","name":"Ubuntu 18.04\u3067Let&#039;s Encrypt\u3092\u4f7f\u3063\u3066Nginx\u3092\u4fdd\u8b77\u3059\u308b\u65b9\u6cd5 - ITPiran\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg","datePublished":"2024-07-06T18:06:23+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/07\/06204200\/nginx.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0686\u06af\u0648\u0646\u0647 Nginx \u0631\u0627 \u0628\u0627 Let&#8217;s Encrypt \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u06cc\u0645\u0646 \u06a9\u0646\u06cc\u0645"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran\u30d6\u30ed\u30b0","description":"\u30a4\u30e9\u30f3\u306e\u6301\u7d9a\u53ef\u80fd\u306a\u8cbf\u6613\u306b\u95a2\u3059\u308b\u30cb\u30e5\u30fc\u30b9\u3068\u8a18\u4e8b","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"\u6301\u7d9a\u53ef\u80fd\u306a\u30a4\u30e9\u30f3\u30d3\u30b8\u30cd\u30b9\u30d6\u30ed\u30b0","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"\u7ba1\u7406\u8005","url":"https:\/\/www.itpiran.net\/blog\/ja\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/15851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/comments?post=15851"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/15851\/revisions"}],"predecessor-version":[{"id":15853,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/15851\/revisions\/15853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/media\/15852"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/media?parent=15851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/categories?post=15851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/tags?post=15851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}