Generate wildcard certificate Let's Encrypt with DNS challenge
Let’s Encrypt already support generating wildcard certificate for your domain since 2018. This article will help you generate wildcard certificate without setup web server and prefer using DNS challenge
Before generating the certificate, make sure you have an access to your DNS manager and have certbot installed. To generate certificate, you can execute this command:
Certbot will ask you to configure DNS TXT record
configure your record with something like:
- Hostname: _acme-challenge
- TTL: 300
- Type: TXT
- Address/value: xxxxx_xxxxxxxxxx_xxxxxxxxxx-xx
Be careful not to enter the certbot command directly. You must wait 10-20 minutes to make the record sync. After that you can press enter in the certbot!
you can check with openssl command
you can see the Subject Alternative Name
Written on July 5, 2020