{"id":120,"date":"2019-06-27T09:09:58","date_gmt":"2019-06-27T01:09:58","guid":{"rendered":"http:\/\/www.nickyoo7.pro\/?p=120"},"modified":"2021-10-01T10:23:49","modified_gmt":"2021-10-01T02:23:49","slug":"synology-nas-%e4%b8%8a%e4%bd%bf%e7%94%a8-ssl-for-free-%e7%9a%84%e7%9b%b8%e9%97%9c%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/www.nickyoo7.com\/?p=120","title":{"rendered":"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c"},"content":{"rendered":"<p>Synology NAS \u4e0a\u672c\u8eab\u5c31\u6709\u652f\u63f4\u7dda\u4e0a\u7533\u8acb SSL For Free \u7684\u529f\u80fd\uff0c<\/p>\n<p>\u4f46\u82e5\u9047\u5230\u7121\u6cd5\u7533\u8acb\u6210\u529f\uff0c\u9700\u624b\u52d5\u8a8d\u8b49\u7684\uff0c\u6703\u9700\u8981\u8abf\u6574\u4e00\u4e9b\u8a2d\u5b9a<\/p>\n<p><!--more--><\/p>\n<p>\u5728\u624b\u52d5\u8b49\u8a8d\u6642\u6703\u9700\u8981 \u4f7f\u7528\u5230 \/.well-known\/acme-challenge \u9019\u500b\u76ee\u9304\u4f86\u653e\u7f6e\u8a8d\u8b49\u6a94.<\/p>\n<p>\u4f46 \u5728 synology \u9810\u8a2d\u7684 nginx service \u5167\uff0c \u5f37\u5236\u5c07\u6240\u6709 web server \u7684\u00a0\/.well-known\/acme-challenge \u5c0e\u5230\u00a0\/var\/lib\/letsencrypt \u5167.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">cd \/etc\/nginx\/ \r\ncat nginx.config<\/pre>\n<p>\u5728\u8a2d\u5b9a\u6a94\u5167\u6703\u767c\u73fe :<\/p>\n<pre class=\"lang:sh decode:true\"> location ^~ \/.well-known\/acme-challenge {                                                    \r\n            root \/var\/lib\/letsencrypt;                                                                         \r\n            default_type text\/plain;                                                                          \r\n        }<\/pre>\n<p>\u89e3\u6c7a\u65b9\u5f0f :<\/p>\n<p>1.\u78ba\u8a8d\u00a0\/var\/lib\/letsencrypt\/ \u662f\u5426\u5df1\u5b58\u5728\uff0c\u4e0d\u5b58\u5728\u5c31\u65b0\u589e\u00a0mkdir \/var\/lib\/letsencrypt\/<\/p>\n<p>2.\u5efa\u7acb\u4e00\u500b\u53ef\u4ee5\u900f\u904e DSM \u4e0a\u50b3\u6a94\u6848\u7684\u8cc7\u6599\u593e\uff0c\u5c07\u00a0\/var\/lib\/letsencrypt \u5229\u7528 ln \u9023\u7d50\u5230\u8a72\u8cc7\u6599\u593e.<\/p>\n<p>ex : \u5728\u00a0\/volume1\/web\/ \u5efa\u7acb\u4e00\u500b SSLForFree \u7684\u8cc7\u6599\u593e\uff0c\u4e26\u65b0\u589e\u00a0.well-known \u5b50\u8cc7\u6599\u593e<\/p>\n<p>3.\u9023\u7d50<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">ln -s \/volume1\/web\/SSLForFree\/.well-known\/ \/var\/lib\/letsencrypt\/.well-known<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e4b\u5f8c\u53ea\u9700\u5c07\u8a8d\u8b49\u6a94\u4e0a\u50b3\u5230 SSLForFree \u5167\u5c0d\u61c9\u7684\u8cc7\u6599\u593e\u5373\u53ef.<\/p>\n<p>\u53c3\u8003\u8cc7\u6599 :\u00a0https:\/\/cleanshadow.blogspot.com\/2017\/01\/ssl.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synology NAS \u4e0a\u672c\u8eab\u5c31\u6709\u652f\u63f4\u7dda\u4e0a\u7533\u8acb SSL For Free \u7684\u529f\u80fd\uff0c \u4f46\u82e5\u9047\u5230\u7121\u6cd5\u7533\u8acb\u6210\u529f\uff0c\u9700 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.nickyoo7.com\/?p=120\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-linux-","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World<\/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.nickyoo7.com\/?p=120\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World\" \/>\n<meta property=\"og:description\" content=\"Synology NAS \u4e0a\u672c\u8eab\u5c31\u6709\u652f\u63f4\u7dda\u4e0a\u7533\u8acb SSL For Free \u7684\u529f\u80fd\uff0c \u4f46\u82e5\u9047\u5230\u7121\u6cd5\u7533\u8acb\u6210\u529f\uff0c\u9700 &hellip; \u95b1\u8b80\u5168\u6587\u3008Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c\u3009\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.nickyoo7.com\/?p=120\" \/>\n<meta property=\"og:site_name\" content=\"oo7&#039;s World\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-27T01:09:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-01T02:23:49+00:00\" \/>\n<meta name=\"author\" content=\"oo7\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"oo7\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.nickyoo7.com\/?p=120\",\"url\":\"https:\/\/www.nickyoo7.com\/?p=120\",\"name\":\"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World\",\"isPartOf\":{\"@id\":\"https:\/\/www.nickyoo7.com\/#website\"},\"datePublished\":\"2019-06-27T01:09:58+00:00\",\"dateModified\":\"2021-10-01T02:23:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.nickyoo7.com\/#\/schema\/person\/2ab2a209159a41a5c551869792fd0367\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.nickyoo7.com\/?p=120#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.nickyoo7.com\/?p=120\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.nickyoo7.com\/?p=120#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/www.nickyoo7.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.nickyoo7.com\/#website\",\"url\":\"https:\/\/www.nickyoo7.com\/\",\"name\":\"oo7&#039;s World\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.nickyoo7.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.nickyoo7.com\/#\/schema\/person\/2ab2a209159a41a5c551869792fd0367\",\"name\":\"oo7\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.nickyoo7.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e2ffdb3c64d0daa8a28af5806bcb94e283c27974a48761397038108203287e0d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e2ffdb3c64d0daa8a28af5806bcb94e283c27974a48761397038108203287e0d?s=96&d=mm&r=g\",\"caption\":\"oo7\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World","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.nickyoo7.com\/?p=120","og_locale":"zh_TW","og_type":"article","og_title":"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World","og_description":"Synology NAS \u4e0a\u672c\u8eab\u5c31\u6709\u652f\u63f4\u7dda\u4e0a\u7533\u8acb SSL For Free \u7684\u529f\u80fd\uff0c \u4f46\u82e5\u9047\u5230\u7121\u6cd5\u7533\u8acb\u6210\u529f\uff0c\u9700 &hellip; \u95b1\u8b80\u5168\u6587\u3008Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c\u3009","og_url":"https:\/\/www.nickyoo7.com\/?p=120","og_site_name":"oo7&#039;s World","article_published_time":"2019-06-27T01:09:58+00:00","article_modified_time":"2021-10-01T02:23:49+00:00","author":"oo7","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"oo7","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.nickyoo7.com\/?p=120","url":"https:\/\/www.nickyoo7.com\/?p=120","name":"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c - oo7&#039;s World","isPartOf":{"@id":"https:\/\/www.nickyoo7.com\/#website"},"datePublished":"2019-06-27T01:09:58+00:00","dateModified":"2021-10-01T02:23:49+00:00","author":{"@id":"https:\/\/www.nickyoo7.com\/#\/schema\/person\/2ab2a209159a41a5c551869792fd0367"},"breadcrumb":{"@id":"https:\/\/www.nickyoo7.com\/?p=120#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.nickyoo7.com\/?p=120"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.nickyoo7.com\/?p=120#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.nickyoo7.com\/"},{"@type":"ListItem","position":2,"name":"Synology NAS \u4e0a\u4f7f\u7528 SSL For Free \u7684\u76f8\u95dc\u554f\u984c"}]},{"@type":"WebSite","@id":"https:\/\/www.nickyoo7.com\/#website","url":"https:\/\/www.nickyoo7.com\/","name":"oo7&#039;s World","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.nickyoo7.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.nickyoo7.com\/#\/schema\/person\/2ab2a209159a41a5c551869792fd0367","name":"oo7","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.nickyoo7.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e2ffdb3c64d0daa8a28af5806bcb94e283c27974a48761397038108203287e0d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e2ffdb3c64d0daa8a28af5806bcb94e283c27974a48761397038108203287e0d?s=96&d=mm&r=g","caption":"oo7"}}]}},"_links":{"self":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":5,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}