Hello, first off - I did search through the forums for DMEasy.ps1, insecureredirect and Posh-ACME with only the last phrase coming back with any results but nothing seemingly relevant.
This is my first time attempting DNS-01 authentication, as we usually use HTTP-01, but for this domain, we have control over DNS.
In our configuration, we have a separate task which writes out the leaf/chain/key. We are not writing directly to IIS. We are simply using CCM to interface with LE and we handle the certificates via separate powershell tasks afterwards. Just putting this out there, to help frame the issue better.
I am getting errors when I’m attempting to create the certificates. The errors pertain to the DMEasy.ps1 file when interfacing with the DME POSH API.
Here is one of the messages (this certificate is requesting a SAN with three related FQDNs)
2026-08-16 14:15:08.790 -05:00 [ERR] DNS update failed: DNS Made Easy DNS API (using Posh-ACME) :: PowerShell Execution Mode: InProcess.
PowerShell Host: Core 7.6.3
Error: Cannot follow an insecure redirection by default. Reissue the command specifying the -AllowInsecureRedirect switch. at Add-DnsTxt, C:\Program Files\CertifyTheWeb\Service\Scripts\DNS\PoshACME\Plugins\DMEasy.ps1: line 62
at , : line 42
I see in the DME audit logs the three records being created and then deleted, so I’m a little confused as to the true nature of the error. Although the second time around, it apparently wasn’t able to delete the records automagically. But both the first and second attempts came back with the same failure message.
Doing a little bit of googling, I found that PowerShell 7.4 and greater added the -AllowInsecureRedirect, presumably because Invoke-RestMethod no longer follows insecure redirects, as the error message states.
As you can see in the error message, this machine is on 7.6.3. The last LTS version that apparently supports insecure redirects, 7.2, went end-of-support nearly two years ago.
Looking at the DMEasy.ps1, I don’t find any strings matching “http:”, only “https:”. While I haven’t loaded up wireshark and configured this system to snag the SSL keys, would the http redirects come from DME directly?
So - all that said, what is the best way to resolve this problem?
Thank you for your time.