--letsencrypt for domain without "Site"

i have a Site /var/www/domain1.com/htdocs with secondary pointing domain: domain2.com.

server_name domain1.com www.domain1.com domain2.com www.domain2.com;

Are there any ways to --letsencrypt domain2.com?

im getting expected error : sudo ee site update domain2.com --letsencrypt Site domain2.com does not exist.

PS i’m also created a separate records for domain2.com at /etc/nginx/sites-available/domain2.com /etc/nginx/sites-enabled /domain2.com

If you have customized your nginx vhost, EasyEngine will not be able to detect another domain because you haven’t use the command :

ee site create domain2.com

But it may be better to create another vhost for domain2.com, because I do not think your website use two domain at the same time ?