← Integrations

Automated SSL certificate renewal for Synology NAS

Replace the certificate and keep your DSM service assignments.

Synology DiskStation Manager (DSM) lets you assign certificates to the web console, Synology Drive, FTPS, and reverse proxies. When you renew a certificate outside DSM, you have to import it on every NAS that uses it. Public certificate lifetimes are heading to 47 days.

CertKit renews the certificate and imports it through the DSM Web API. You can make it the NAS default or assign it to specific services.

Start free trial Watch demo

Built for Synology

A pre-built Synology NAS (DSM) template ships in your CertKit account. No scripting required.

On every renewal, the agent signs in to DSM, replaces its own certificate in place, and checks that DSM holds the new one. Every service assigned to that certificate switches to the renewal, and DSM restarts those services itself. Set the services to all and the certificate becomes the NAS's default, taking over every service the old default had. Or list the services by the names DSM shows, and CertKit assigns exactly those and leaves the rest alone.

DSM restarts services that use the renewed certificate. Schedule the deployment outside backup jobs or other times when those services need to stay online.

How to install an SSL certificate on a Synology NAS

The manual process, if you want to do it yourself:

  1. Create a certificate signing request. In DSM, open Control Panel → Security → Certificate, click CSR, and choose Create certificate signing request. DSM gives you a zip with the CSR and the private key. Keep the key, because you'll need it again at import.
  2. Get the certificate signed. Submit the CSR to a certificate authority and download the signed certificate and its intermediate. A wildcard certificate can cover the NAS and reverse proxy hostnames one level below the same domain.
  3. Import the certificate. Click Add, choose Add a new certificate, then Import certificate. Upload the private key, the certificate, and the intermediate certificate. Tick Set as default certificate if it should take over from the current default.
  4. Assign it to services. Click Settings and pick the certificate for each service in the list: System default for the DSM web page, FTPS, Synology Drive Server, and each reverse proxy hostname. DSM restarts every service you change.
  5. Replace it when it renews. For the renewal, click Add and choose Replace an existing certificate, so the services keep their assignment. Then check that each one serves the new certificate.

With public certificate lifetimes shrinking to 47 days, renewing a few weeks early means repeating this work about twelve times a year. An expired certificate can interrupt Synology Drive sync, FTPS transfers, or access to apps behind the NAS's reverse proxy.

At 47 days, automation is the only sustainable way to run Synology certificates. Here's how CertKit does it.

Ever since the news of the Certificate expiration dates being compressed down to 47 days we have been looking for an MSP friendly solution, CertKit were the clear winners as their platform is easy to use, MSP friendly & cost effective. We’ve been really impressed with the team from a technical support perspective as they’re super quick to respond and we’ve never had a certificate we couldn’t provision!

Andrew Charlesworth, Technical Director, NCS

How it works

 Your network            CertKit                 ACME CA
┌───────────────────┐     ┌──────────────────┐    ┌─────────────┐
│  ┌─────────────┐  │     │                  │    │             │
│  │CertKit Agent├──┼────►│  Issue & Renew   │◄──►│             │
│  └──────┬──────┘  │     │   Certificates   │    │             │
│         │ DSM     │     │                ┌───┐  └─────────────┘
│         │ Web API │     └────────────────│DNS│
│         ▼         │                      └───┘
│  ┌─────────────┐  │
│  │ Synology NAS│  │
│  │ [x] Imported│  │
│  │ [x] Assigned│  │
│  └─────────────┘  │
└───────────────────┘

CertKit issues and renews certificates centrally using delegated DNS validation. You create a one-time CNAME record, and CertKit handles every ACME challenge after that.

The CertKit Agent runs on a Windows host on the same network as the NAS. It pulls each renewal from CertKit over outbound HTTPS, then signs in to DSM on its HTTPS port (5001 unless you changed it) as a DSM administrator. The DSM password is stored encrypted in CertKit. The NAS never talks to CertKit, and CertKit never connects into your network. One agent can serve every NAS it can reach.

What CertKit handles

Setup takes about ten minutes

  1. Connect your domain. Add a one-time CNAME record to delegate DNS validation to CertKit.
  2. Create a DSM account for CertKit. Add a user to the administrators group without 2-factor authentication, because the agent signs in on its own and can't type a code. Works with DSM 7.
  3. Install the CertKit Agent. One command on a Windows host that can reach DSM over HTTPS.
  4. Add the Synology deployment script. Choose the Synology NAS (DSM) template, then enter the address you open DSM at, the account, and all or the services to assign.

See the full architecture →

Synology deployment requirements and troubleshooting →

Why not use DSM's built-in Let's Encrypt?

DSM can request and renew a Let's Encrypt certificate. For HTTP validation, Synology documents how to make port 80 reachable from the internet for issuance and renewal.

It also only covers certificates DSM requested itself. Synology says a Let's Encrypt certificate imported from another device can't be renewed by DSM. A certificate from your company's CA, or one that also lives on your firewall, still needs importing after renewal. CertKit validates through DNS, so you can deploy the same certificate to the NAS and other devices without opening port 80 for validation.

Synology is just one box that needs a certificate

Most networks have more than one place where TLS certificates live: file transfer servers like CrushFTP and FileZilla Server, the firewall in front of the NAS, like WatchGuard or SonicWall, and web servers like IIS and nginx. CertKit automates all of it from one account.

See all integrations

Start automating Synology certificates today

Free 30-day trial. No credit card required. Direct access to our engineering team to get you set up.

Start free trial See pricing