Wildcard ssl multi level subdomains in one cert

Hello.

Is such generation possible for hello.com, *.hello.com, *.world.hello.com, *.tools.hello.com?

        docker run \
            --rm \
            -v "/ssl.d:/etc/letsencrypt" \
            -v "/letsencrypt:/var/lib/letsencrypt" \
            -v "/cloudflare.ini:/cloudflare.ini" \
            certbot/dns-cloudflare \
            certonly \
            --dns-cloudflare \
            --dns-cloudflare-credentials /cloudflare.ini \
            --email "support@hello.com" \
            --non-interactive \
            --agree-tos \
            -d "hello.com" \
            -d "*.hello.com" \
            -d "*.world.hello.com" \
            -d "*.tools.hello.com" \
            --server https://acme-v02.api.letsencrypt.org/directory
1 Like

Yes, absolutely.

Let’s Encrypt allows a certificate to have up to 100 names, and any or all of them can be wildcards or not.

I don’t have enough experience with Docker to say if that command will work, but the Certbot parts of it look fine. (The --server operation is unnecessary with recent versions of Certbot, though.)

(However, hello.com does not use Cloudflare.)

3 Likes

Thank you, you have helped a lot.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.