How to Generate ssl for multiple domains?


#1

I want to generate ssl for multiple domains and sub domain using certbot.

Eg: abc.com, *.abc.com, def.com

I am using sudo certbot certonly --preferred-challenges dns --email jamin.shah@ia.ooo --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d abc.com -d *.abc.com -d def.com

But unable to do the same.Please guide me if I am missing some configuration


#2

Your command looks correct, so you’re going to need to be more specific on what is going wrong.


#3

It will ask to deploy DNS_TXT for both domain and sub domain.I mean first it will ask for abc.com, then once it is passed then for *.abc.com .My only concern is doesn’t it(*abc.com) overrride DNS_TXT for abc.com?


#4

You can create multiple DNS TXT records under a single DNS label, just like you can give multiple IP addresses to a domain name.

e.g. _acme-challenge.abc.com can have multiple TXT values at the same time.

How exactly you do this in your DNS management interface depends on your provider.