Unable to Auto Renew a wildcard certificate

Welcome @Abdul12

First, you got a wildcard cert as recent as Mar17 which expires in 32 days but you are using an older cert you got on Feb21 which expires in 9 days like you say.

To get a wildcard cert you must use the DNS Challenge. To automate that you must be able to use an API to make the needed TXT record that you have done by hand. It looks like you are using NameSilo (yes?).

If so, it looks like acme.sh supports that. See link here

Or, you could try this fairly new extension to certbot which provides a link to the lego ACME client and its DNS providers which also includes NameSilo.

You might also look at the Apache mod_md feature. It also supports DNS Challenges although I don't know much about that. (more info here)

If you don't absolutely need a wildcard you could use the HTTP Challenge instead. Then, you just request a cert for the specific DNS names you use. An HTTP Challenge is often much easier to automate. I see you have a wildcard in your DNS so I assume you need one but that isn't always that case.

Let us know if you need further help and what method you prefer.

5 Likes