Updating Let’s Encrypt SSL Cert on Synology NAS

I have a Synology NAS at home and it’s awesome. With access to most things now done over a secure channel (e.g. HTTPS) it’s really annoying to not have a valid certificate issued by an authorised authority. Synology is aware of the problem and so have made it super simple to get a certificate from Let’s Encrypt . Synology has some great info on getting started on their site .

What I don’t like is that to setup a certificate you have to forward public traffic from port 80 on your router to the Synology NAS. This is so that Let’s Encrypt can validate the device and setup the certificate, and it needs to be left open so that the certificate can auto-renew (Let’s Encrypt certificates only last for 3 months). I’m sure that Synology spent a lot of time securing the NAS so that port 80 can be left open, but I still feel better having it closed – it’s an unnecessary hole in my firewall.

I opened port 80 during the initial setup of the certificate, and then closed it again, all good and everything has worked fine for the last 3 months. But I needed a way to renew the certificate. Here are the steps I took:

  1. Open port 80 on my router to point to the NAS
  2. Open Powershell on my Windows 10 Desktop
  3. Connect to BASH subsystem on Windows 10 (cool new feature)
  4. ssh into the NAS
  5. run the following command to update the certificate
    sudo /usr/syno/sbin/syno-letsencrypt renew-all
  6. Check it worked (through the Synology NAS website) and then close port 80 again

稿源:Greg's Rambling about SQL (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 科技动态 » Updating Let’s Encrypt SSL Cert on Synology NAS

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录