Nginx add new subdomain

For these cases it is better to use --cert-name instead of --expand. Following your example:

certbot-auto --cert-name example.com -d example.com -d dev.example.com -d preprod.example.com -d www.example.com -d test.example.com

1 Like