# Help with wildcard setup

**URL:** <https://community.letsencrypt.org/t/help-with-wildcard-setup/79448>\
**Category:** Help\
**Created:** [December 7, 2018, 3:19am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448 "2018-12-07T03:19:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 3:19am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/1 "2018-12-07T03:19:34Z")

</div>

My domain is: marcuse.net.au

I ran this command:  
let’s encrypt in a docker container  
subdomain = wildcard

It produced this output:  
going to a website still provides the cert error

I can login to a root shell on my machine (yes or no, or I don’t know): yes

 ![pfsense](https://global.discourse-cdn.com/letsencrypt/original/3X/e/d/edce632bb7791bf940ae6779bacb870ec46e4975.png)

---

<div class="post-metadata">

**Author:** ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)\
**Post date:** [December 7, 2018, 3:32am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/2 "2018-12-07T03:32:27Z")

</div>

Hi,

A wildcard certificate will only cover the first level names…

It seems that you created a certificate for \*.marcuse.net.au, so the certificate will work on ad.marcuse.net.au, not \*.ad.marcuse.net.au

Thank you

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 3:36am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/3 "2018-12-07T03:36:12Z")

</div>

how can i get it working with this config ?  
i want to cover both marcuse.net.au and ad.marcuse.net.au

 ![MicrosoftTeams-image](https://global.discourse-cdn.com/letsencrypt/original/3X/3/6/3601dff9931dba3d5553cc5951726e4b8a5dc7a1.jpeg)

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 3:41am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/4 "2018-12-07T03:41:23Z")

</div>

It may be easier to change the server name from  
`pfsense.ad.marcuse.net.au`  
(which is NOT covered by the existing wildcard cert)  
to something like:  
`pfsense-ad.marcuse.net.au`  
(which would be covered by the existing wildcard cert).

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 3:42am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/5 "2018-12-07T03:42:51Z")

</div>

i got servers linked to my AD which is ad.marcuse.net.au  
and i got services linked to marcuse.net.au

so i need both active.

---

<div class="post-metadata">

**Author:** ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)\
**Post date:** [December 7, 2018, 3:47am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/6 "2018-12-07T03:47:37Z")

</div>

Hi,

What command did you run to get this certificate? Or on what platform (web control panel?)

You’ll need a certificate that contains two SANs… Not sure if the profram allow you to do so…

Thank you

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 3:54am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/7 "2018-12-07T03:54:54Z")

</div>

> [@tempa](#):
>
> how can i get it working with this config?

What is that program?

> [@tempa](#):
>
> i want to cover both marcuse.net.au and ad.marcuse.net.au

Then you will need two wildcards (which can be on the same cert - or separate certs).  
But we are not familiar with the program in your screenshot...

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 3:56am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/8 "2018-12-07T03:56:22Z")

</div>

[https://hub.docker.com/r/linuxserver/letsencrypt/](https://hub.docker.com/r/linuxserver/letsencrypt/)  
im using a docker container of the lets encrypt

im using portainer to manage my containers.

below is my config  
docker create   
–cap-add=NET\_ADMIN   
–name=letsencrypt   
–restart always   
–net=int\_net   
–ip=192.168.70.242   
-v /var/lib/docker/volumes/letsencrypt\_config/\_data:/config   
-e PGID=1001 -e PUID=1001   
-e EMAIL=ben@marcuse.net.au   
-e URL=marcuse.net.au   
-e SUBDOMAINS= wildcard   
-e VALIDATION=dns   
-e DNSPLUGIN= cloudflare   
-p 80:80 -p 443:443   
-e TZ=Australia/Sydney   
linuxserver/letsencrypt

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:00am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/9 "2018-12-07T04:00:49Z")

</div>

I don’t see how that can do multiple wildcards…

Maybe you can run a docker container per each required wildcard?  
Create the cert therein and export/share/move it to another path.  
Then shutdown the containers (when not in use).

I’m sure the are probably better solutions; but if you need something right away, this may work.

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 4:04am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/10 "2018-12-07T04:04:13Z")

</div>

what is the other way to do it to allow both wildcards in one cert?  
hopefully in a docker container

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:07am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/11 "2018-12-07T04:07:52Z")

</div>

I don't know how (using that client).  
But others have run other clients in docker that can do what you need.  
ACME.sh comes to mind.

> [@News: acme.sh releases 2.6.8 with docker images](https://community.letsencrypt.org/t/news-acme-sh-releases-2-6-8-with-docker-images/31216):
>
> …

---

<div class="post-metadata">

**Author:** ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)\
**Post date:** [December 7, 2018, 4:09am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/12 "2018-12-07T04:09:23Z")

</div>

Hi,

According to the documents…  
You might be able to run this  
`docker create –cap-add=NET_ADMIN –name=letsencrypt –restart always –net=int_net –ip=192.168.70.242 -v /var/lib/docker/volumes/letsencrypt_config/_data:/config -e PGID=1001 -e PUID=1001 -e EMAIL=ben@marcuse.net.au -e URL=marcuse.net.au -e SUBDOMAINS= wildcard -e EXTRA_DOMAINS = ad.marcuse.net.au -e VALIDATION=dns -e DNSPLUGIN= cloudflare -p 80:80 -p 443:443 -e TZ=Australia/Sydney linuxserver/letsencrypt`

Not sure what type of SAN it would create for the AD subdomain.

Thank you

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 4:11am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/13 "2018-12-07T04:11:14Z")

</div>

tried that before, didnt work

2048 bit DH parameters present

SUBDOMAINS entered, processing

Wildcard cert for marcuse.net.au will be requested

EXTRA\_DOMAINS entered, processing

Extra domains processed are: -d ad.marcuse.net.au

E-mail address entered: ben@marcuse.net.au

dns validation via cloudflare plugin is selected

Different validation parameters entered than what was used before. Revoking and deleting existing certificate, and an updated one will be created

nerating new certificate

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator dns-cloudflare, Installer None

Obtaining a new certificate

An unexpected error occurred:

The request message was malformed :: Error creating new order :: Domain name “ad.marcuse.net.au” is redundant with a wildcard domain in the same request. Remove one or the other from the certificate request.

Please see the logfiles in /var/log/letsencrypt for more details.

IMPORTANT NOTES:

- Your account credentials have been saved in your Certbot

ERROR: Cert does not exist! Please see the validation error above. Make sure you entered correct credentials into the /config/dns-conf/cloudflare.ini file.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:12am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/14 "2018-12-07T04:12:51Z")

</div>

> [@tempa](#):
>
> Extra domains processed are: -d ad.marcuse.net.au

That would have to say:  
Extra domains processed are: -d "\*.ad.marcuse.net.au"  
Which is quite unclear in the documentation if that is supported (or how to get more than one wildcard on the same cert).

Why re-invent the wheel?  
Try something else that is proven to work for the situation you have.

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 4:15am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/15 "2018-12-07T04:15:45Z")

</div>

so you mention to use acme.sh ?

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:22am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/16 "2018-12-07T04:22:54Z")

</div>

Yes, I would try acme.sh

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 4:23am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/17 "2018-12-07T04:23:13Z")

</div>

i have not used it before

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:23am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/18 "2018-12-07T04:23:39Z")

</div>

I have; it is very easy to use  
I have not used it in docker image…  
But it should give the same results.

---

<div class="post-metadata">

**Author:** ![tempa](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tempa](https://community.letsencrypt.org/u/tempa)\
**Post date:** [December 7, 2018, 4:25am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/19 "2018-12-07T04:25:50Z")

</div>

would you be able to provide some assistance in setting it up ?

there is also a acme package within pfsense i installed but havent configured

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [December 7, 2018, 4:29am UTC](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448/20 "2018-12-07T04:29:13Z")

</div>

I would have to read on how to do it in docker.  
Which is the same thing you would have to do.  
Once you run it and if you have any trouble you can open another ticket here and mention “acme.sh docker” in the title.  
You will get the right attention to that thread.

[Next page](https://community.letsencrypt.org/t/help-with-wildcard-setup/79448.md?page=2)
