So, during the past week, I came across something I would use and that is wildcards for SSL Certificates. Apparently the beginning of this year, I pretty much bought 3 SSL Wildcards for my sites through my registrar and it was pretty cheap that it was 2 years for $99. I know some people may think Why buy, well is because wildcards wasn’t available yet at the time and I thought to myself if Let’s Encrypt is going to come out some kind of wildcard services and they did. So today, I will be sharing my experience with it.
First of all, I am using certbot now and here’s how you would get it working on your VPS or Dedicated Server. Please note that the way I’m doing it is what i feel like more comfortable with. Anyways, before you begin, you will need to clone the repo from github over at Certbot. Once you have clone it, head over to the folder and type the following command.
sudo ./certbot-auto certonly --manual --server https://acme-v02.api.letsencrypt.org/directory
This will eventually download all the necessary files and installation that are needed to get this to work. Afterwards it will ask you to fill in some information and once you get to enter your domain name, make sure that you add
*.domain.com domain.com, there’s two domain that you need ot enter, one is just a wildcard and the other one is just your domain name.
Next you will be asked to deploy a DNS Text file in your DNS Record and it tell you how to do it. It will look somehing like this
_acme-challenge.domain.com.From there it will also asked you to create a new file inside of the domain with the following .well-known/acme-challenge/with the generate code.
Press continue and you should see some progress and you are done, it will show you or tell you where the .pem files are at and basically you’re done. This process can be done on your local computer instead in your server itself.