myriad wrote:Plus, reading your how-to, I think I have too many domain directories in my .acme.sh file:
Code: Select all
root@zmail:/home/rick/.acme.sh# ls
account.conf acme.sh.env deploy http.header zmail.stephenleacock.ca
acme.sh ca dnsapi zmail.myriad.ca zmail.watermarkpromo.com
Shouldn't all the certs be in the one FQDN folder (zmail.myriad.ca)?
Interesting.
Yes I only have 1 domain name in the .acme.sh folder. I used the -d option with the different domains because the same certificate can contain several different names using the Subject Alternative Name (SAN) mechanism which is what we are doing with the -d option
That means if I was going to generate your certs, I would do it this way assuming zmail.myriad.ca is my zmhostname.
Code: Select all
acme.sh --issue --dns -d zmail.myriad.ca -d zmail.stephenleacock.ca -d mail.watermarkpromo.com -d mail.example.com -d ...
The problem with my method is that it wants a domain name directory to install from. More specifically, in both the original post and the newer post I do this:
Code: Select all
cd /opt/letsencrypt/.acme.sh/$domain/
cp $domain.key /opt/zimbra/ssl/zimbra/commercial/commercial.key
If it worked before, what was that commercial.key? It would be the last domain directory you installed from so probably not what you wanted. The Subject Alternative Name (SAN) mechanism will work fine for multiple domain names. There is really no difference between the new script and the old method other than the acme.sh part being removed and automating the IdentTrust.pem stuff. If you are invoking the acme.sh the same way each time... the
first -d will create the domain name in .acme.sh ... If you are doing this:
Code: Select all
acme.sh --issue --dns -d zmail.stephenleacock.ca -d stephenleacock.ca
acme.sh --issue --dns -d zmail.myriad.ca -d myriad.ca
acme.sh --issue --dns -d mail.watermarkpromo.com -d watermarkpromo.com -d ...
That would generate 3 directories inside .acme.sh directory. Similarly, specifying all the domains with one invocation of acme.sh but using a different first -d domain over time could create that environment... the problem is the last domain key will be installed as the commercial.key when you finally go to install it. If that worked before, running the deploy script 3 times changing the domain each time would give you the same results which doesn't seem like it really is what you want.
If you really do need multiple domains, perhaps this link might help.
https://wiki.zimbra.com/wiki/Multiple_SSL_Certificates,_Server_Name_Indication_(SNI)_for_HTTPS first introduced in 8.7. I haven't used this as referencing my zimbra instances with different name and domains works fine with the other way.