1

This question already has an answer here:

I've been creating certificates this way for over a year:

export website="my_domain1111.com"
sudo certbot certonly --standalone -d $website -d www.$website --email hello@$website

and it's always created one for $website

/etc/letsencrypt/live/my_domain1111.com

Today for some reason it created a one with "www" instead of a bare domain

export website="another_my_domain222.com"
sudo certbot certonly --standalone -d $website -d www.$website --email hello@$website

# =>>>
/etc/letsencrypt/live/www.another_my_domain222.com

Why? has there been any change recently in certbot?

I've tried changing the order of the "-d" params - the same effect:

sudo certbot certonly --standalone  -d www.$website -d $website --email hello@$website

/etc/letsencrypt/live/www.another_my_domain222.com # with "www"

Version - 0.25

marked as duplicate by 84104, womble Jul 20 '18 at 6:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.