SAN multi domains with acme-client

Dear everyone,

I am using acme-client on FreeBSD, obtain certs from multi domains and sub domains, they are being used for Postfix, Dovecot and Openldap. I’d like to ask about obtaining a SAN cert key as it’s bundled all domains’ certs into one.

What i did as putting all domains and subdomains into file “/usr/local/etc/acme/domains.txt” in one line only as below:
imail.domain1.com smtp.domain1.com imap.domain1.com ldap.domain1.com imail.domain2.com smtp.domain2.com imap.domain2.com ldap.domain2.com

Then execute command “# /usr/local/etc/acme/acme-client.sh”

Is it correct way to request a SAN cert?
If not, could you please show me how to do this?

Thank you.

Is it really “acme-client.sh”? Because there’s also a C program for BSD and Linux called “acme-client”, without the .sh. I’m assuming acme-client here.

The man page of acme-client doesn’t mention anything about the requested (SAN) domain names in a file. It does however mention just feeding the list to the program on the command line.