Import-Module 'ACME-PS' error

Hi,
I tried to run the command
Import-Module ‘ACME-PS’;
in PowerShell but i got the error message:
Import-Module : The specified module ‘ACME-PS’ was not loaded because no valid
module file was found in any module directory.
What shuold i do?
What are the prerequisites for ACME-PS?

Thanks,
Yosi

How did you install the module prior to trying to import it? Also, what does Get-ExecutionPolicy return?

i didnt install it, how do i need to install it?
Get-ExecutionPolicy return me RemoteSigned

ACME-PS is a powershell module you need to install before you can import and use it with Import-Module. Typically, you would do this by running something like Install-Module ACME-PS -Scope CurrentUser. But I’m not really familiar with the specifics of how to use ACME-PS.

I got an error:
WARNING: Unable to resolve package source
https://www.powershellgallery.com/api/v2/’.
PackageManagement\Install-Package : No match was found for the specified
search criteria and module name ‘ACME-PS’. Try Get-PSRepository to see all
available registered module repositories.
At C:\Program

It sounds like you might need to update your PowerShell package management pieces to deal with some fairly recently changes Microsoft made to the gallery.

Run this from an admin PowerShell prompt:

Install-PackageProvider -Name NuGet -Force
Exit

Then run this from a new admin PowerShell prompt:

Install-Module -Name PowerShellGet -Force
Exit

Finally, you should be able to run a normal PowerShell prompt and install the module:

Install-Module ACME-PS -Scope CurrentUser

For this i got this error message:

PS C:\Windows\system32> Install-PackageProvider -Name NuGet -Force
WARNING: MSG:UnableToDownload
«https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»
WARNING: Unable to download the list of available providers. Check your
internet connection.
WARNING: Unable to download from URI
'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
Install-PackageProvider : No match was found for the specified search criteria
for the provider 'NuGet'. The package provider requires 'PackageManagement'
and 'Provider' tags. Please check if the specified package has the tags.
At line:1 char:1

  • Install-PackageProvider -Name NuGet -Force
  •   + CategoryInfo          : InvalidArgument: (Microsoft.Power...PackageProvi
     der:InstallPackageProvider) [Install-PackageProvider], Exception
      + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.Pac
     kageManagement.Cmdlets.InstallPackageProvider

It sounds like you have some larger issues with your system being able to access the Internet or perhaps just resolve internet names in DNS. I can’t really help you fix that.

I fixed the previous problem
now "Create an new account" code works well
but

<# -- Variables (multiple DNS names) -- #>

This directory is used to store your account key and service directory urls as well as orders and related data

$acmeStateDir = "C:\Temp\AcmeState"; # Strings are automatically be converted to AcmeState

This dns names will be used as identifier

$dnsIdentifiers = @("example.com","www.example.com"); # Strings will automatically be converted to AcmeIdentifier

<# -- Script (multiple DNS names) -- #>
Import-Module 'ACME-PS';

Create a new order

$order = New-ACMEOrder -State $acmeStateDir -Identifiers $dnsIdentifiers;

failed on
Server returned Problem (Status: 400). Type: urn:ietf:params:acme:error:malformed JWS verification error
what is the problem here?
is it because the deom URL?

Thanks,
Yosi

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.