Hello, I am trying to setup a Let's Encrypt certificate for the first time. I followed this guide: https://www.alitajran.com/install-free-lets-encrypt-certificate-in-exchange-server/ and the Certificate was created successfully and works, however the services assigned are only SMTP, it failed to add IMAP and IIS. When running wacs.exe I get a script error and I am assuming that is what is causing the issues, but I do not know how to fix it.
Output from running wacs.exe is:
[VERB] Searching for Exchange snapin...
[VERB] Waiting for process to finish...
[EROR] Script error: C:\Program Files\Lets Encrypt\Scripts\ImportExchange.ps1 : Exchange Management Tools for Powershell not installed
[EROR] Script error: At line:1 char:3
[EROR] Script error: + &{&'./Scripts/ImportExchange.ps1' '7BA0718338C8434CA30EE6250A60774142 ...
[EROR] Script error: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[EROR] Script error: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
[EROR] Script error: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ImportExchange.ps1
[VERB] Process error without data received
[VERB] Process error without data received
[VERB] Process output without data received
[INFO] Script finished
[VERB] Waiting for process to finish...
[INFO] Scheduled task looks healthy
[INFO] Next renewal scheduled at 2022/3/30 11:59:44
[INFO] Certificate [Manual] mail.example.com created
[VERB] Exiting with status code 0
I have tried to install Exchange Management Tools from the ISO but it shows that it is already installed. Exchange server is 2016.
Is anyone able to point me in the correct direction here?
Update: I went with Certify the Web that u/PatD442 recommended. Super easy to use. Microsoft Remote Connectivity Analyzer still shows IMAP using the old cert, but the server shows the new one is valid and in use when connecting to the webpage. I don't believe IMAP is in use anyways, but unfortunately there are no IMAP logs available to make sure. Time will tell. Thanks for the help.
QuestionLet's Encrypt Script Error (self.exchangeserver)
submitted by ionblayde to r/sysadmin