Use the syntax below to generate a Let's Encrypt certificate when a space exists in the MDaemon or SecurityGateway directory path.
This process requires the Let's Encrypt script to be ran manually. A Windows task can be created using the Windows Task Scheduler to automatically run the command before the certificate expires.
Open a command prompt and navigate to the LetsEncrypt folder in the directory where the software was installed.
- Example: C:\Program Files\MDaemon\LetsEncrypt>
The command must be ran from inside MDaemon's LetsEncrypt folder and should resemble the following;
- C:\Program Files\MDaemon\LetsEncrypt> C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe .\letsencrypt.ps1 "-alternatehostnames mail1.domain.com,mail2.domain.com" -To "admin@yourdomain.com"
OR
Find the directory path for powershell.exe.
- Example: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
The command would resemble as follows if ran from this directory.
- C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -Command "& 'C:\Program Files\MDaemon\LetsEncrypt\letsencrypt.ps1' -alternatehostnames mail1.domain.com,mail2.domain.com"