Dynamic Subdomains Nginx

Hello!
I tried to generate a dynamic SSL certificate for Nginx (hosted on ubuntu 20) for my website using DNS-01 challenge.
My domain name is https://robomiri.com.
It works fine for the main domain, but, when I access a dynamic subdomain like https://stats.4182.robomiri.com it says that the certificate is issued for *.robomiri.com and that the site is not safe.

Can someone give me some advice about this?
Thank you!

1 Like

wildcards work for one label only. *.example.com does not cover fourth.third.example.com

replace the dot with something else.

2 Likes

Ah, I understand.
Thank you very much.
Is there a way to cover multiple labels?

1 Like

that depends: how many, and how?

you cannot have * on multiple labels and you cannot have it on any label but the leftmost one.

2 Likes

Would be ok to generate a certificate for *.stats.robomiri.com ?
Would this work? And to change my order of labels?

Thanks!

1 Like

yes. that would work.

4 Likes

Thank you very much!
I really appreciate it.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.