SSL Certificate not working for non-www domain


I am using Nginx
I have generate a wildcard ssl certificate ie *
bu using this command
./certbot-auto certonly --server --manual --preferred-challenges dns -d *

But this certificate is only working for and doesn’t working for

so is there any way to use this certificate for both www & non-www.

Please let me know how to fix this

Ankit Gupta

Yes, that's exactly correct. * will cover subdomains of, but not itself--as a very cursory search would have revealed. If you want to cover on the same cert, you'll need to issue a new cert covering both * and

but please tell how to do that.

Similar command to what you used before:

./certbot-auto certonly --server --manual --preferred-challenges dns -d -d "*"


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