{"id":134,"date":"2023-05-31T17:30:44","date_gmt":"2023-09-01T00:41:17","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/"},"modified":"2025-07-31T21:02:26","modified_gmt":"2025-07-31T12:02:26","slug":"%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d"},"content":{"rendered":"<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>Nginx\u306f\u591a\u304f\u306e\u5927\u898f\u6a21\u3067\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30b5\u30a4\u30c8\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u30db\u30b9\u30c8\u3067\u304d\u308b\u4eba\u6c17\u306e\u3042\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067HTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002\u3053\u308c\u306f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u3068\u3063\u3066\u6700\u3082\u5b89\u5168\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001HTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002HTTPS\u306f\u6697\u53f7\u5316\u3055\u308c\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3067\u3042\u308a\u3001TLS\/SSL\u8a3c\u660e\u66f8\u3067\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002Let&#8217;s Encrypt\u3084Cerbot\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u3084HTTPS\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u307e\u3060\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u306e\u4f8b\u306fUbuntu 22.04\u30b5\u30fc\u30d0\u30fc\u3067\u30c6\u30b9\u30c8\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u307b\u3068\u3093\u3069\u306eNginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a8\u30e9\u30fc\u306e\u307b\u3068\u3093\u3069\u306f\u3001Nginx\u306e\u6a19\u6e96\u5316\u3055\u308c\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7bc4\u56f2\u5185\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u304c\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d1\u30b9\u306f\u82e5\u5e72\u7570\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u306eTLS\/SSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u63a5\u7d9a\u306e\u8a2d\u5b9a\u6642\u306b\u767a\u751f\u3059\u308b\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u308c\u3089\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30a8\u30e9\u30fc\u306e\u53ef\u80fd\u306a\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3001\u4fee\u6b63\u3059\u308b\u65b9\u6cd5\u3082\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2>\u3042\u306a\u305f\u306eNginx\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u691c\u67fb<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u63d0\u793a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u3084\u89e3\u6c7a\u7b56\u306f\u4e00\u822c\u7684\u306a\u4f8b\u3067\u3042\u308a\u3001\u3059\u3079\u3066\u306e\u53ef\u80fd\u6027\u3092\u7db2\u7f85\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u69cb\u6587\u30a8\u30e9\u30fc\u304cNginx\u304c\u6b63\u898f\u306e\u6587\u3068\u8a8d\u8b58\u3059\u308b\u69cb\u9020\u3092\u5d29\u3059\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u306fNginx\u306e\u5fdc\u7b54\u65b9\u6cd5\u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306b\u904e\u304e\u307e\u305b\u3093\u3002\u3057\u3070\u3057\u3070\u30011\u3064\u306e\u30a8\u30e9\u30fc\u304c\u5225\u306e\u30a8\u30e9\u30fc\u3092\u5f15\u304d\u8d77\u3053\u3059\u3053\u3068\u304c\u3042\u308a\u3001\u30a8\u30e9\u30fc\u306f\u3088\u308a\u5927\u304d\u306a\u554f\u984c\u3084\u5225\u306e\u554f\u984c\u306e\u75c7\u72b6\u3068\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u7279\u5b9a\u306e\u72b6\u6cc1\u3084\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3088\u3063\u3066\u72b6\u6cc1\u306f\u7570\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5e38\u306bNginx\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u53c2\u7167\u3057\u3066\u5b9f\u884c\u4e2d\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">cat<\/span> \/var\/log\/nginx\/error.log<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h2>\n<p>\u3082\u3057\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304cHTTP\u304b\u3089HTTPS\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a2d\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u554f\u984c\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u9069\u5207\u306a\u30dd\u30fc\u30c8\uff08\u3053\u306e\u5834\u5408\u3001443\uff09\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u30dd\u30fc\u30c8\u306f\u6697\u53f7\u5316\u3055\u308c\u305fHTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u793a\u3057\u307e\u3059\u3002\u306a\u304a\u3001Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u30c9\u30e1\u30a4\u30f3\u306e\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u69cb\u9020\u306b\u5f93\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/nginx\/sites-available\/example.com \u306e\u4ee5\u4e0b\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\u5fc5\u8981\u3067\u3059\uff1a<br \/>\n\/example.com \u306e\u4f8b\u3068\u306a\u308b\u5834\u6240\u306b\u3042\u308b \/etc\/nginx\/sites-available\u306e\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        root \/var\/www\/example.com\/html;\r\n        index index.html index.htm index.nginx-debian.html;\r\n\r\n        server_name example.com www.example.com;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u6307\u793a\u306e\u8a73\u7d30\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u7279\u306b\u6ce8\u610f\u3059\u3079\u304d\u91cd\u8981\u306a\u6307\u793a\u306f\u300clisten\u300d\u3067\u3059\u3002\u73fe\u5728\u3001\u3053\u306e\u6307\u793a\u3067\u306f\u30dd\u30fc\u30c880\u3078\u306e\u53d7\u4fe1\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306fNginx\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30c8\u3067\u3059\u3002\u3053\u306e\u30dd\u30fc\u30c8\u306fHTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u7528\u3067\u3042\u308a\u3001HTTPS\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002HTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u305f\u3081\u306b\u306f\u3001listen\u6307\u793a\u3092\u66f4\u65b0\u3057\u3066\u30dd\u30fc\u30c8443\u3092\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u52b9\u7387\u7684\u306b\u3053\u308c\u3092\u884c\u3046\u65b9\u6cd5\u306e\u4e00\u3064\u306f\u3001Let&#8217;s Encrypt\u306e\u3088\u3046\u306a\u8a3c\u660e\u66f8\u767a\u884c\u5c40\uff08Certificate Authority\u3001CA\uff09\u304b\u3089TLS\/SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3057\u3066\u6697\u53f7\u5316\u3055\u308c\u305fHTTPS\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u8a3c\u660e\u66f8\u3092\u6301\u3064\u3053\u3068\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Certbot\u3068\u3044\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx\u5411\u3051\u306e\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u5168\u306b\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306eCertbot\u306b\u306fNginx\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5099\u308f\u3063\u3066\u304a\u308a\u3001Certbot\u306bNginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u7684\u306b\u69cb\u6210\u3055\u305b\u3066\u3001\u3059\u3079\u3066\u306eHTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3001\u76f4\u63a5\u306eHTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u7981\u6b62\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u597d\u307f\u306b\u5fdc\u3058\u3066\u624b\u52d5\u3067\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001\u540c\u3058\u539f\u5247\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u3001\u5f53\u793e\u306e\u300cLet\u2019s Encrypt\u3067Nginx\u3092\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Let\u2019s Encrypt\u3092\u901a\u3058\u3066\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u6b21\u306e\u3088\u3046\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\n<p>\u4ee5\u4e0b\u306e\u30d5\u30ec\u30fc\u30ba\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u307e\u3059\uff1a<\/p>\n<p>\u300c\/etc\/nginx\/sites-available\/example.com\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>server {\r\n\r\n        root \/var\/www\/example.com\/html;\r\n        index index.html index.htm index.nginx-debian.html;\r\n\r\n        server_name example.com www.example.com;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n\r\n    <mark>listen [::]:443 ssl ipv6only=on; # managed by Certbot<\/mark>\r\n    <mark>listen 443 ssl; # managed by Certbot<\/mark>\r\n    <mark>ssl_certificate \/etc\/letsencrypt\/live\/example.com\/fullchain.pem; # managed by Certbot<\/mark>\r\n    <mark>ssl_certificate_key \/etc\/letsencrypt\/live\/example.com\/privkey.pem; # managed by Certbot<\/mark>\r\n    <mark>include \/etc\/letsencrypt\/options-ssl-nginx.conf; # managed by Certbot<\/mark>\r\n    <mark>ssl_dhparam \/etc\/letsencrypt\/ssl-dhparams.pem; # managed by Certbot<\/mark>\r\n\r\n\r\n}\r\n\r\n<mark>server {<\/mark>\r\n       <mark> if ($host = www.example.com) {<\/mark>\r\n                <mark>return 301 https:\/\/$host$request_uri;<\/mark>\r\n        } # managed by Certbot\r\n\r\n\r\n        <mark>if ($host = example.com) {<\/mark>\r\n                <mark>return 301 https:\/\/$host$request_uri;<\/mark>\r\n        } # managed by Certbot\r\n\r\n\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        server_name example.com www.example.com;\r\n        <mark>return 404; # managed by Certbot<\/mark>\r\n}\r\n<\/code><\/pre>\n<p>\u3082\u3057\u6700\u521d\u306e\u4f8b\u3068\u3053\u306e\u30b5\u30fc\u30d0\u30c9\u30e1\u30a4\u30f3\u30d6\u30ed\u30c3\u30af\u3092\u6bd4\u8f03\u3059\u308b\u3068\u3001Certbot\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u305f\u81ea\u52d5\u624b\u9806\u306e\u7d50\u679c\u3068\u3057\u3066\u884c\u308f\u308c\u305f\u5909\u66f4\u3092\u8a55\u4fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u91cd\u8981\u306a\u306e\u306f\u3001listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u30dd\u30fc\u30c8443\u3092\u6307\u3057\u3066\u3044\u308b\u305f\u3081\u3001HTTPS\u63a5\u7d9a\u304c\u8a31\u53ef\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002Certbot\u3092\u901a\u3058\u3066Let&#8217;s Encrypt\u304c\u751f\u6210\u3057\u305f\u8a3c\u660e\u66f8\u3068\u9375\u3082\u3001\u4eca\u3084\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30d6\u30ed\u30c3\u30af\u3068\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Certbot\u306f\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u518d\u69cb\u7bc9\u3057\u3066\u3001\u3059\u3079\u3066\u306eHTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u4eca\u3001\u8ffd\u52a0\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u30dd\u30fc\u30c880\u3067\u306e\u5143\u306e\u30ea\u30c3\u30b9\u30f3\u6307\u4ee4\u3092\u51e6\u7406\u3057\u307e\u3059\u3002\u3053\u306e\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306f\u3001$host\u5909\u6570\u306b\u5bfe\u3059\u308b\u6761\u4ef6\u4ed8\u304d\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30c9\u30e1\u30a4\u30f3\u3078\u306e\u3059\u3079\u3066\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u30ad\u30e3\u30c3\u30c1\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30a7\u30c3\u30af\u306f\u6761\u4ef6\u4ed8\u304d\u306eif\u6307\u793a\u6587\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6307\u793a\u6587\u306f\u3001\u5909\u6570\u304c\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u305d\u308c\u304b\u3089Nginx\u306f301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b5\u30a4\u30c8\u306eHTTPS\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u91cd\u8981\u306a\u306e\u306f\u3001\u6761\u4ef6\u4ed8\u304d\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u901a\u904e\u3057\u3066\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u5c4a\u3044\u305f\u5834\u5408\u3001\u30db\u30b9\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u3068\u3057\u3066404\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u307e\u3060\u554f\u984c\u304c\u7d9a\u304f\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u306e\u8abf\u6574<\/h2>\n<p>Web\u30d6\u30e9\u30a6\u30b6\u304cTLS\/SSL\u8a3c\u660e\u66f8\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3082\u5fdc\u7b54\u3057\u306a\u3044\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u306b\u554f\u984c\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001Let&#8217;s Encrypt\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u305f\u5834\u5408\u3001HTTP\u304b\u3089HTTPS\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u81ea\u52d5\u7684\u306b\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30f3\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306e1\u3064\u3068\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u30dd\u30fc\u30c8443\u4e0a\u306eHTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u958b\u304b\u308c\u3066\u3044\u308b\u30dd\u30fc\u30c8\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306fUncomplicated Firewall\uff08UFW\uff09\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw status<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code>Status: active\r\n\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)\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306fHTTP\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30dd\u30fc\u30c8443\u3092\u4ecb\u3057\u3066TLS\/SSL\u3067\u6697\u53f7\u5316\u3055\u308c\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308bNginx HTTPS\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token string\">&#8216;Nginx HTTPS&#8217;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u300c\u30eb\u30fc\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u300d\u3068\u3044\u3046\u51fa\u529b\u3092\u53d7\u3051\u53d6\u3063\u305f\u3089\u3001\u3053\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3092\u30ea\u30b9\u30c8\u306b\u6b63\u5e38\u306b\u8ffd\u52a0\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw status<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code>Status: active\r\n\r\nTo                         Action      From\r\n--                         ------      ----\r\nOpenSSH                    ALLOW       Anywhere\r\nNginx HTTP                 ALLOW       Anywhere\r\nNginx HTTPS                ALLOW       Anywhere\r\nOpenSSH (v6)               ALLOW       Anywhere (v6)\r\nNginx HTTP (v6)            ALLOW       Anywhere (v6)\r\nNginx HTTPS (v6)           ALLOW       Anywhere (v6)\r\n<\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u300cNginx Full\u300d\u3068\u3044\u3046\u540d\u524d\u306eNginx\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u306fHTTP\u3068HTTPS\u306e\u30dd\u30fc\u30c8\u63a5\u7d9a\u3092\u4e21\u65b9\u958b\u304f\u8a2d\u5b9a\u3067\u3059\u3002\u30ea\u30b9\u30c8\u3092\u6574\u7406\u3057\u305f\u3044\u5834\u5408\u306f\u3001sudo ufw delete allow &#8216;Nginx HTTP&#8217;\u3068sudo ufw delete allow &#8216;Nginx HTTPS&#8217;\u306e2\u3064\u306e\u30eb\u30fc\u30eb\u3092\u524a\u9664\u3057\u3001\u6b21\u306e\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\nsudo ufw allow &#8216;Nginx Full&#8217;<\/div>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u3001HTTP\u3068HTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304b\u3089\u306e\u63a5\u7d9a\u3092\u53d7\u3051\u5165\u308c\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<p>\u4eca\u3067\u306f\u3001Nginx\u306eHTTP\u304a\u3088\u3073HTTPS\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u4e21\u65b9\u30ea\u30b9\u30c8\u306b\u8868\u793a\u3055\u308c\u3001\u30dd\u30fc\u30c8443\u304c\u958b\u653e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306fHTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>TLS\/SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b89\u5168\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p>HTTP\u304b\u3089HTTPS\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3001\u6697\u53f7\u5316\u3055\u308c\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u901a\u5e38\u3001\u3053\u308c\u306fTLS \/ SSL\u8a3c\u660e\u66f8\u3067\u691c\u8a3c\u3055\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u30ec\u30d9\u30eb\u3067\u307e\u3060\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u306b\u554f\u984c\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u3080\u3057\u308d\u8a3c\u660e\u66f8\u305d\u306e\u3082\u306e\u306b\u554f\u984c\u304c\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u81ea\u5df1\u7f72\u540dSSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u308c\u306fLet&#8217;s Encrypt\u306e\u3088\u3046\u306a\u8a3c\u660e\u6a5f\u95a2\uff08CA\uff09\u306b\u3088\u3063\u3066\u691c\u8a3c\u3055\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u7d50\u679c\u3001https:\/\/example.com\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u8a2a\u554f\u8005\u306b\u5bfe\u3057\u3066\u3053\u306e\u30b5\u30a4\u30c8\u306f\u5b89\u5168\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656455b4daa94e2bdf7b0dcf\/35-0.png\" alt=\"Nginx self-signed cert warning\" \/><\/div>\n<p>\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u300c\u63a5\u7d9a\u304c\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u306a\u3044\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3001NET::ERR_CERT_AUTHORITY_INVALID\u3068\u3044\u3046\u5177\u4f53\u7684\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8a3c\u660e\u66f8\u304c\u5b89\u5168\u3067\u306a\u304f\u3066\u3082\u3001[\u9ad8\u5ea6\u306a\u8a2d\u5b9a]\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308c\u3070\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656455b4daa94e2bdf7b0dcf\/37-0.png\" alt=\"Nginx self-signed override\" \/><\/div>\n<p>\u300cAdvanced\uff08\u9ad8\u5ea6\u306a\uff09\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8a73\u7d30\u306b\u3088\u308b\u3068\u3001example.com\u306f\u9069\u5207\u306b\u8b58\u5225\u3067\u304d\u306a\u3044\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u81ea\u5df1\u7f72\u540dSSL\u8a3c\u660e\u66f8\u3067\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u308c\u304c\u5b9f\u969b\u306b\u771f\u5b9f\u3067\u3042\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u304c\u3001\u3042\u306a\u305f\u306e\u30b5\u30a4\u30c8\u3092\u8a2a\u308c\u308b\u4eba\u3005\u306b\u306f\u3053\u306e\u3088\u3046\u306b\u6349\u3048\u3089\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u5148\u3078\u9032\u3080\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u8a2a\u308c\u305f\u969b\u306b\u3053\u306e\u3088\u3046\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306f\u60aa\u304f\u306a\u308a\u307e\u3059\u3002CA\u306b\u3088\u3063\u3066\u691c\u8a3c\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002Let&#8217;s Encrypt\u3068\u5171\u306bNginx\u3092\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u5f53\u793e\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001Let&#8217;s Encrypt\u3092\u901a\u3058\u3066TLS\/SSL\u8a3c\u660e\u66f8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656455b4daa94e2bdf7b0dcf\/41-0.png\" alt=\"Nginx expired certificate\" \/><\/div>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u300c\u63a5\u7d9a\u304c\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u306f\u7570\u306a\u308a\u3001\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306fNET::ERR_CERT_DATE_INVALID\u3068\u3044\u3046\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u73fe\u5728\u306eSSL\/TLS\u8a3c\u660e\u66f8\u304c\u671f\u9650\u5207\u308c\u3067\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u306f90\u65e5\u9593\u3057\u304b\u6709\u52b9\u3067\u306f\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002Let&#8217;s Encrypt\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306bcertbot\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3001\u6b21\u306e30\u65e5\u4ee5\u5185\u306b\u671f\u9650\u5207\u308c\u306e\u8a3c\u660e\u66f8\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3001systemd\u3092\u901a\u3058\u3066\u4e00\u65e5\u306b\u4e8c\u56de\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30bf\u30a4\u30de\u30fc\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status snap.certbot.renew.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u304c\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u304c\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u8a3c\u660e\u66f8\u304c\u671f\u9650\u5207\u308c\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u5f37\u5236\u7684\u306b\u66f4\u65b0\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u3067\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3057\u305f\u3044\u5834\u5408\u306b\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">certbot certonly \u2013force-renew <span class=\"token parameter variable\">-d<\/span> <mark>example.com<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Certbot\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u3001\/etc\/cron.d\u306b\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Certbot\u3067renew_hook\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u66f4\u65b0\u5f8c\u306b\u4ed6\u306e\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001Certbot\u306e\u66f4\u65b0\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306brenew_hook\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/letsencrypt\/renewal\/<mark>example.com<\/mark>.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u5165\u3063\u305f\u3089\u3001\u6700\u5f8c\u306e\u884c\u306b\u30d5\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u3066\u3001\u66f4\u65b0\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div>\n<p>\u4ee5\u4e0b\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306b\u8a00\u3044\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300c\/etc\/letsencrypt\/renewal\/example.com.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>renew_hook = <mark>systemctl reload your_service<\/mark>\r\n<\/code><\/pre>\n<p>\u4f5c\u696d\u304c\u7d42\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3082\u3057nano\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001CTRL + X\u3001Y\u3001\u305d\u3057\u3066ENTER\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306b\u9078\u629e\u3059\u308b\u3082\u306e\u306b\u95a2\u308f\u3089\u305a\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066certbot\u304c\u6b63\u5e38\u306b\u66f4\u65b0\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u5e38\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> certbot renew &#8211;dry-run<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001sudo nginx -t \u3092\u4f7f\u7528\u3057\u3066\u69cb\u6587\u30a8\u30e9\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u305d\u306e\u5f8c\u3001sudo systemctl restart nginx \u3092\u4f7f\u7528\u3057\u3066Nginx\u3092\u518d\u8d77\u52d5\u3057\u3066\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u3059\u3079\u3066\u3092\u884c\u3063\u305f\u5f8c\u3001https:\/\/example.com \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u5177\u4f53\u7684\u306b\u306f\u3001HTTP\u304b\u3089HTTPS\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u89e3\u6c7a\u7b56\u306b\u306f\u3001\u9069\u5207\u306a\u30dd\u30fc\u30c8\u3067\u306e\u5f85\u3061\u53d7\u3051\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u958b\u3044\u3066\u3053\u308c\u3089\u306e\u63a5\u7d9a\u3092\u53d7\u4fe1\u3059\u308b\u65b9\u6cd5\u3001\u304a\u3088\u3073SSL\/TLS\u8a3c\u660e\u66f8\u304c\u691c\u8a3c\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u6709\u52b9\u671f\u9650\u5207\u308c\u3067\u3042\u308b\u304b\u306b\u95a2\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u51e6\u7406\u65b9\u6cd5\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002Nginx\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001\u5f53\u793e\u306e\u30bf\u30b0\u4ed8\u3051\u3055\u308c\u305f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30da\u30fc\u30b8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u304b\u3001Ubuntu 22.04\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306e\u5b66\u7fd2\u306b\u9032\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 Nginx\u306f\u591a\u304f\u306e\u5927\u898f\u6a21\u3067\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30b5\u30a4\u30c8\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u30db\u30b9\u30c8\u3067\u304d\u308b\u4eba\u6c17\u306e\u3042\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067HTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30ea\u30af\u30a8\u30b9\u30c8 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\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.silicloud.com\/ja\/blog\/\u300cnginx\u306essl\u8a3c\u660e\u66f8\u3068https\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\" \/>\n<meta property=\"og:description\" content=\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u300cnginx\u306essl\u8a3c\u660e\u66f8\u3068https\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-01T00:41:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:02:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656455b4daa94e2bdf7b0dcf\/35-0.png\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\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=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"20\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\",\"name\":\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-09-01T00:41:17+00:00\",\"dateModified\":\"2025-07-31T12:02:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d - Blog - Silicon Cloud","description":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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.silicloud.com\/ja\/blog\/\u300cnginx\u306essl\u8a3c\u660e\u66f8\u3068https\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\/","og_locale":"ja_JP","og_type":"article","og_title":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d","og_description":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u300cnginx\u306essl\u8a3c\u660e\u66f8\u3068https\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-01T00:41:17+00:00","article_modified_time":"2025-07-31T12:02:26+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656455b4daa94e2bdf7b0dcf\/35-0.png"}],"author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"20\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","name":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-09-01T00:41:17+00:00","dateModified":"2025-07-31T12:02:26+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u300cNginx\u306eSSL\u8a3c\u660e\u66f8\u3068HTTPS\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u300d"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cnginx%e3%81%aessl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%a8https%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":36818,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/134\/revisions\/36818"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}