Synology: How to Add Wildcard Certificate

Synology How to Add Wildcard Certificate

In computer networking, a Wildcard Certificate is a public key certificate which can be used with multiple sub-domains of a domain. The principal use is for securing web sites with HTTPS, but there are also applications in many other fields. All Synology DDNS hostnames like synology.me support Wildcard. Wildcard settings allow you to reach the same Synology products or https Docker Containers using a different combination of subdomains. Ultimately you will have only one certificate to renew every 3 months instead of dozens or hundreds. In this step by step guide I will show you how to apply a Wildcard certificate if you already have a synology.me DDNS certificate.

Remember this is a premium article and your support is appreciated.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Follow my step by step guide on how to activate your synology.me DDNS on DSM 7
Follow my step by step guide on how to activate your synology.me DDNS on DSM 6.2.4
Note: If you already own a synology.me DDNS, skip this STEP.

  • STEP 3

Go to Control Panel / Security / Certificate tab. Click Add. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 1

  • STEP 4

After you click Add on STEP 3, a new pop up window will open. Select Replace an existing certificate then select your Synology DDNS certificate from the list. Click Next. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 2

  • STEP 5

Select Get a certificate from Let’s Encrypt then Set as default certificate. Click Next. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 3

  • STEP 6

  1. On the Domain name area type in your DDNS. In my case it’s mariusdocker.synology.me In your case yourname.synology.me
  2. On the email area type in your email.
  3. On the Subject Alternative Name, before your DDNS, type in:
*.

In my case *.mariusdocker.synology.me In your case *.yourname.synology.me

Click Done. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 4

  • STEP 7

After you click Done on STEP 6 you should wait a few seconds until the Wildcard certificate is applied to your DDNS.

Synology DDNS Wildcard Set up 5

  • STEP 8

Check to see if the Wildcard certificate works. Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 6

  • STEP 9

Now click the “Create” button. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 7

  • STEP 10

Let’s take a random docker container you have installed using my guides. In this case I will use YouTube Downloader to show you how the Wildcard certificate works.

On the General area, set the Reverse Proxy Name description: type in what you want, in my case Youtube Downloader. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: yd.yourname.synology.me Note: I have chosen to add yd before mariusdocker.synology.me You can choose any name before .yourname.synology.me
Port: 443

Destination:
Protocol: HTTP
Hostname: localhost
Port: 8084 (the localhost port of the YouTube Downloader container)

Click Save. Follow the instructions in the image below.

Synology DDNS Wildcard Set up 8

  • STEP 11

The Wildcard certificate is working perfectly!

Synology DDNS Wildcard Set up 9

  • STEP 12

You can use the instructions at STEP 10 to add HTTPS access to all of your docker containers using just one Certificate. You only have to choose a new subdomain name before your .yourname.synology.me – You will see all of your subdomains under the first Synology DDNS certificate in Control Panel / Security / Certificate tab.

Synology DDNS Wildcard Set up 10

  • STEP 13

Enable HTTP/2

  • STEP 14

Synology DSM 7: Access synology.me without Port :5001

Note: When you renew your certificate, you will only have to renew the yourname.synology.me certificate and all subdomains will be automatically updated.
Note: You can choose a different Synology hostname for your DDNS. All Synology hostnames support the Wildcard certificate.
Note: Some Docker containers like Home Assistant (Not All) need WebSocket activation in order to work over an HTTPS connection. To do this, go to Control Panel / Login Portal / select your Reverse Proxy then click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.

Synology Docker Reverse Proxy WebSocket

This post was updated on Monday / July 19th, 2021 at 5:08 PM