using certbot-auto for nginx
<p>I have an nginx running.
Now I want my nginx to use SSL:</p>

<pre><code>certbot-auto --nginx -d my.domain.com -n --agree-tos --email admin@mail.com
</code></pre>

<p>OUTPUT:</p>

<pre><code>Performing the following challenges:
tls-sni-01 challenge for my.domain.com
Cleaning up challenges
Cannot find a VirtualHost matching domain my.domain.com.
</code></pre>

<p>my.domain.com is pointing to the IP of my server. It's its dns name. 
What am I doing wrong? I did this already for apache and it was working fine. My nginx is running (and I'm not able to restart it manually after the <code>certbot-auto</code> but this wasn't necessary when I used <code>certbot-auto --apache</code></p>