Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Support > Archive > Import-Module : The specified module 'ACMESharp' was not loaded because no valid module file was found in any module

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Support  / Archive  /

Import-Module : The specified module 'ACMESharp' was not loaded because no valid module file was found in any module

[vitale, fabio]
fabio vitale
Novice
Novice
Posts: 108
fabio vitale - 03:34am, Nov 21 2019

I upgraded both PowerShell and .NET Framework on the OS where my
MDaemon server is running and now I can no longer renew the
LetsEncrypt certificate anymore.

I get the following error:

Import-Module : The specified module 'ACMESharp' was not loaded
because no valid module file was found in any module

I am on:
- Windows Server 2008 R2 64 bit English
- MDaemon Webmail v19.0.3 64 bit English
- PowerShell 5.1
- .NET Framework 4.7.2

If I run the following Powershell commands I get the following
output:

PS D:\MDaemon\LetsEncrypt> Import-Module ACME-PS

Import-Module : The specified module 'ACME-PS' was not loaded because
no valid module file was found in any module
directory.
At line:1 char:1
+ Import-Module ACME-PS
+ ~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo : ResourceUnavailable: (ACME-PS:String)
[Import-Module], FileNotFoundException
     + FullyQualifiedErrorId :
Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

=======================

PS D:\MDaemon\LetsEncrypt> $PSVersionTable.PSVersion

Major Minor Build Revision
----- ----- ----- --------
5 1 14409 1005

--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------




  (older msg: 4)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron.Caruth@mdaemon.com - Nov 21, 2019 9:18 am (#5 Total: 5)  

Guest User  

Photo of Author
Posts: 1
The log indicates that the challenge did not complete for md.envisioning.it.

The challenge Status is invalid for md.envisioning.it using alias md.envisioning.it_Cert_2019_11_637099447825880150.
Visit the following URI for more information:
https://acme-v01.api.letsencrypt.org/acme/authz-v3/1340325770
This is a critical error, the script will now stop.

Did you follow the link to see what the error is?

According to the data in the link, LetsEncrypt could not connect to http://md.envisioning.it/.well-known/acme-challenge/o-0rUcEa0XYpTZay759h57c4cS7ID0JqEWSYueXnvVg

      "error": {
        "type": "urn:acme:error:connection",
        "detail": "Fetching http://md.envisioning.it/.well-known/acme-challenge/o-0rUcEa0XYpTZay759h57c4cS7ID0JqEWSYueXnvVg: Timeout during connect (likely firewall problem)",
        "status": 400

--
Arron Caruth
Vice President of Product Development
o: 817-601-3222 e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email
Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server

-----Original Message-----
From: md-support@mdaemon.com [mailto:md-support@mdaemon.com] On Behalf Of Fabio VITALE (fabio.vitale@envisioning.it)
Sent: Thursday, November 21, 2019 8:03 AM
To: md-support@mdaemon.com
Subject: [md-support] Import-Module : The specified module 'ACMESharp' was not loaded because no valid module file was found in any module

Ok, I update del env var PSModulePath including the \MDaemon\LetsEncrypt\Modules\

now a get another error:

LetsEncrypt.log

Starting Script run at 11/21/2019 14:53:02.
Get the MDaemon paths.
The MDaemon.ini Path is D:\MDaemon\App\MDaemon.ini.
The MDaemon APP Path is D:\MDaemon\App\.
The MDaemon Pem path is D:\MDaemon\Pem.
The MDaemon Log path is D:\MDaemon\md_logs\.
The MDaemon RAW path is d:\mdaemon\RawFiles\.
The WorldClient Path is D:\MDaemon\WorldClient.
The WorldClient HTML Path is D:\MDaemon\WorldClient\HTML.
The well-known path is D:\MDaemon\WorldClient\HTML\.well-known.
The Acme-Challenge path is
D:\MDaemon\WorldClient\HTML\.well-known\Acme-challenge.
The FQDN is set to md.envisioning.it.
The email address is set to postmaster@md.envisioning.it.
Importing the ACMESharp module.
The ACME Vault is already setup.
The ACME registration is already setup.
Setting up md.envisioning.it.
Reading configurations from D:\MDaemon\LetsEncrypt\LetsEncrypt.XML.
Reading configurations from D:\MDaemon\LetsEncrypt\LetsEncrypt.XML.
The Alias stored in XML is for md.envisioning.it is md.envisioning.it_Cert_2019_11.
XML Month is 11
XML Year is 2019
The global:alias is md.envisioning.it_Cert_2019_11 AltHostName is False.
Checking to see if a certificate already exists for md.envisioning.it_Cert_2019_11.
The given key was not present in the dictionary.
The certificate doesn't exist.
The alias is set to md.envisioning.it_Cert_2019_11.
The current challenge is Invalid. Creating new alias.
Setting md.envisioning.it_Cert_2019_11_637099447825880150 as the Alias for md.envisioning.it.
Setting up new ACME identifier for md.envisioning.it using md.envisioning.it_Cert_2019_11_637099447825880150.
https://acme-v01.api.letsencrypt.org/acme/authz-v3/1340325770
Setting up ACME challenge for md.envisioning.it using md.envisioning.it_Cert_2019_11_637099447825880150.
The .well-known path for is D:\MDaemon\WorldClient\HTML\.well-known
The Acme Challenge path for md.envisioning.it is D:\MDaemon\WorldClient\HTML\.well-known\Acme-challenge
The Challenge Token for md.envisioning.it and alias
md.envisioning.it_Cert_2019_11_637099447825880150 is o-0rUcEa0XYpTZay759h57c4cS7ID0JqEWSYueXnvVg
The Challenge Content for md.envisioning.it and alias
md.envisioning.it_Cert_2019_11_637099447825880150 is o-0rUcEa0XYpTZay759h57c4cS7ID0JqEWSYueXnvVg.Tffm2HCw-pYWRivRks65Z_N_IKkIxxCP5KpfNCZIUKc
Creating
D:\MDaemon\WorldClient\HTML\.well-known\Acme-challenge\o-0rUcEa0XYpTZay759h57c4cS7ID0JqEWSYueXnvVg
for md.envisioning.it.
Submitting the ACME challenge for md.envisioning.it and alias
md.envisioning.it_Cert_2019_11_637099447825880150 for verification.
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
Status is still 'pending' for md.envisioning.it and md.envisioning.it_Cert_2019_11_637099447825880150, waiting for it to change...
The challenge Status is invalid for md.envisioning.it using alias md.envisioning.it_Cert_2019_11_637099447825880150.
Visit the following URI for more information:
https://acme-v01.api.letsencrypt.org/acme/authz-v3/1340325770
This is a critical error, the script will now stop.


On Thu, 21 Nov 2019 07:37:00 -0600
  Arron Caruth <Arron.Caruth@mdaemon.com> wrote:
> How are you running the import-module command? Are you using
>powershell command prompt, powershell ise or something else? If you
>run powershell ise as an administrator and then run import-module
>ACME-PS do you still get the same error?
>
> If you go to the \MDaemon\LetsEncrypt\Modules\ directory, do you have
>a ACME-PS directory? And is there are ACME-PS.psm1 file in the
>1.1.0 directory?
>
> Check the PSModulePath environment variable on the server and make
>sure the \MDaemon\LetsEncrypt\Modules\ directory is included.
>
> --
> Arron Caruth
> Vice President of Product Development
> o: 817-601-3222 e: Arron.Caruth@mdaemon.com
>
> MDaemon Technologies
> Simple Secure Email
> Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube Sent using
> the MDaemon Email Server
>
> -----Original Message-----
>From: md-support@mdaemon.com [mailto:md-support@mdaemon.com] On Behalf
>Of Fabio VITALE (fabio.vitale@envisioning.it)
> Sent: Thursday, November 21, 2019 2:34 AM
> To: md-support@mdaemon.com
> Subject: [md-support] Import-Module : The specified module 'ACMESharp'
>was not loaded because no valid module file was found in any module
>
> I upgraded both PowerShell and .NET Framework on the OS where my
>MDaemon server is running and now I can no longer renew the LetsEncrypt
>certificate anymore.
>
> I get the following error:
>
> Import-Module : The specified module 'ACMESharp' was not loaded
>because no valid module file was found in any module
>
> I am on:
> - Windows Server 2008 R2 64 bit English
> - MDaemon Webmail v19.0.3 64 bit English
> - PowerShell 5.1
> - .NET Framework 4.7.2
>
> If I run the following Powershell commands I get the following
> output:
>
> PS D:\MDaemon\LetsEncrypt> Import-Module ACME-PS
>
> Import-Module : The specified module 'ACME-PS' was not loaded because
>no valid module file was found in any module directory.
> At line:1 char:1
> + Import-Module ACME-PS
> + ~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : ResourceUnavailable: (ACME-PS:String)
> [Import-Module], FileNotFoundException
> + FullyQualifiedErrorId :
> Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleComma
> nd
>
> =======================
>
> PS D:\MDaemon\LetsEncrypt> $PSVersionTable.PSVersion
>
> Major Minor Build Revision
> ----- ----- ----- --------
> 5 1 14409 1005
>
>
>--MD-SUPPORT-----------------------------------------------------------
>--- This list is for questions and discussion about MDAEMON. To
>unsubscribe from this mailing list send an email to
>md-support-unsubscribe@mdaemon.com .
> --POWERED BY
>MDAEMON!-----------------------------------------------------
>
>
>-----------------------------------------------------------------------
>--- These forums are provided by MDaemon Technologies for user-to-user
>support and discussion. MDaemon staff members may participate in the
>forums periodically but please recognize that this is not the official
>method of receiving technical support. To receive personal technical
>support please use the form here:
> http://www.mdaemon.com/Support/RequestSupport/
>
>-----------------------------------------------------------------------
>---
>
>
>--MD-SUPPORT-----------------------------------------------------------
>--- This list is for questions and discussion about MDAEMON. To
>unsubscribe from this mailing list send an email to
>md-support-unsubscribe@mdaemon.com .
> --POWERED BY
>MDAEMON!-----------------------------------------------------
>
>
>-----------------------------------------------------------------------
>--- These forums are provided by MDaemon Technologies for user-to-user
>support and discussion. MDaemon staff members may participate in the
>forums periodically but please recognize that this is not the official
>method of receiving technical support. To receive personal technical
>support please use the form here:
> http://www.mdaemon.com/Support/RequestSupport/
>
>-----------------------------------------------------------------------
>---
>


--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user support and discussion. MDaemon staff members may participate in the forums periodically but please recognize that this is not the official method of receiving technical support. To receive personal technical support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------

--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------






  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.