{"id":665,"date":"2020-02-26T16:02:27","date_gmt":"2020-02-26T10:02:27","guid":{"rendered":"https:\/\/workit.kz\/?p=665"},"modified":"2020-07-27T10:07:00","modified_gmt":"2020-07-27T04:07:00","slug":"synology-dsm-6-1-xpenology-lets-encrypt-acmev1-to-acmev2","status":"publish","type":"post","link":"https:\/\/workit.kz\/?p=665","title":{"rendered":"Synology DSM 6.1 (xpenology) Lets Encrypt ACMEv1 to ACMEv2"},"content":{"rendered":"<p>If you get messages like:<\/p>\r\n<pre>\r\nsynoscgi_SYNO.Core.Certificate.LetsEncrypt_1_create[5038]: certificate.cpp:957 syno-letsencrypt failed. 200 [new-req, unexpect httpcode]\r\nsynoscgi_SYNO.Core.Certificate.LetsEncrypt_1_create[5038]: certificate.cpp:1359 Failed to create Let'sEncrypt certificate. [200][new-req, unexpect httpcode]\r\n<\/pre>\r\n<!--more-->\r\n<p>Then you need to upgrade your DSM up to version 6.2 or replace execution (syno-letsencrypt) file and some changes in configuarion file:<\/p>\r\n<p>1. Download file&#160;<a href=\"https:\/\/drive.google.com\/drive\/folders\/1-LgjOAU3dBtNk2WKZ1KJY88Lklf12RPp?usp=sharing\">syno-letsencrypt<\/a>&#160;(this file from DSM v6.2)<\/p>\r\n<p>2. If not enabled SSH, please enable in settings<\/p>\r\n<p>3. Copy downloaded file&#160;syno-letsencrypt in any folder on you NAS<\/p>\r\n<p>4. Connect to NAS with SSH (Putty) using admin account<\/p>\r\n<p>5. Make backup of original&#160;syno-letsencrypt (sudo cp \/usr\/syno\/sbin\/syno-letsencrypt usr\/syno\/sbin\/syno-letsencrypt.bck)<\/p>\r\n<p>6. Copy downloaded&#160;syno-letsencrypt file to directory&#160;\/usr\/syno\/sbin\/ (ex.: sudo cp \/volume1\/sharedFolder\/syno-letsencrypt \/usr\/syno\/sbin\/)<\/p>\r\n<p>7. Change attributes (sudo chmod 755 \/usr\/syno\/sbin\/syno-letsencrypt) to execute new file<\/p>\r\n<p>8. Now change default address for&#160;syno-letsencrypt, using ssh (sudo vi \/usr\/syno\/etc.defaults\/letsencrypt\/letsencrypt.default)<\/p>\r\n<p>9. Fine string&#160;\"server\": \"https:\/\/acme-v<strong>01<\/strong>.api.letsencrypt.org\/directory\", press i and change 01 to 02<\/p>\r\n<p>10. Press escape, enter :wq and reboot your NAS.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you get messages like: synoscgi_SYNO.Core.Certificate.LetsEncrypt_1_create[5038]: certificate.cpp:957 syno-letsencrypt failed. 200 [new-req, unexpect httpcode] synoscgi_SYNO.Core.Certificate.LetsEncrypt_1_create[5038]: certificate.cpp:1359 Failed to create Let&#8217;sEncrypt certificate. [200][new-req, unexpect httpcode]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,1],"tags":[37,39,38],"class_list":["post-665","post","type-post","status-publish","format-standard","hentry","category-nas","category-blog","tag-dsm","tag-nas","tag-xpenology"],"_links":{"self":[{"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/posts\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workit.kz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=665"}],"version-history":[{"count":4,"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/workit.kz\/index.php?rest_route=\/wp\/v2\/posts\/665\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/workit.kz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workit.kz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workit.kz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}