I recently discovered Wildcards with Let’s Encrypt, it was something that I was waiting for a while, now that wild cards for let’s encrypt finally available. Here I will show/tell you how to generate your own wild cards for your domain instead of using their single generate certificates.
I will be using Ubuntu 18.04 or Elementary OS to generate a wildcard certificates.
So here is what I did
First, we will need clone cerbot from GitHub
git clone https://github.com/certbot/certbot.git cd certbot sudo ./certbot-auto certonly --manual --server https://acme-v02.api.letsencrypt.org/directory
Once you have run the above command, it will begin to install all the dependencies it needs to start the process of creating/generating a certificate for your domain. Then after it finishes installing what it needs, it will asked you to enter your name and email and next .
When prompt, enter the domain that you want to use, for example *.domain.com domain.com, once you do that, it will asked you to enter and create a DNS Text record for your domain, _acme-challenge.domain.com
The next step will ask you to create a file with a name and content so that the DNS can verify the domain. Once this is done, it will verify and generates the certificate .
All certificates will be place in /etc/letsencrypt.