Tutorial: Let's Encrypt certificates on DSM 6.1.X (change API from v01 to v02)


Recommended Posts

Since Let's Encrypt changed their API from v01 to v02 it isn't possible to request certificates when using DSM 6.1.X.

 

Workaround: exchange the syno-letsencrypt module with a version from a DSM 6.2.X release.

 

Preparations:

 

 

  1. After you have downloaded the file mentioned open a SSH connection to your NAS
  2. Backup your current syno-letsencrypt module by
     
    sudo cp /usr/syno/sbin/syno-letsencrypt usr/syno/sbin/syno-letsencrypt.bak

     
  3. Copy the new syno-letsencrypt from your shared folder (for example: volume1/Downloads) to the sbin folder:
     
    sudo cp /volume1/Downloads/syno-letsencrypt /usr/syno/sbin/

     
  4. Modify the file to execute it:
     
    sudo chmod 755 /usr/syno/sbin/syno-letsencrypt
  5. Open the letsencrypt.default with vi and modify it:
     
    sudo vi /usr/syno/etc.defaults/letsencrypt/letsencrypt.default
  6. Search for the string "https://acme-v01.api.letsencrypt.org/directory"
     
  7. Press "i" and change the 01 to 02 in this string (should be "https://acme-v02.api.letsencrypt.org/directory")
     
  8. To save and exit, press ESC, type :wq (ENTER)
     
  9. Reboot your NAS and Let's Encrypt should work again
  • Like 1
Link to post
Share on other sites
  • jensmander changed the title to Tutorial: Let's Encrypt certificates on DSM 6.1.X (change API from v01 to v02)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.