I'm trying to generate a certificate for single domain but for both www and non-www.

This is how I run it now:

```
certbot --apache -n -d domain.tld -d www.domain.tld --agree-tos --email mail@domain.com --redirect

```

But I'm getting the following:

> 
> Encountered vhost ambiguity but unable to ask for user guidance in
>  non-interactive mode. Currently Certbot needs each vhost to be in its
>  own conf file, and may need vhosts to be explicitly labelled with
>  ServerName or ServerAlias directories.
> 
> 
> 

So I have to run it without the -n(--non-interactive) and select the proper vhost file.

Is there any way I can generate the certificate for www and non-www without any prompts?