ebekker / ACMESharp

An ACME client library and PowerShell client for the .NET platform (Let's Encrypt)
https://pkisharp.github.io/ACMESharp-docs/
1.21k stars 184 forks source link

Nano Server 2016: Initialize-ACMEVault throws exception #246

Open john-connett opened 7 years ago

john-connett commented 7 years ago

Windows Nano Server 2016 installed as in https://blogs.technet.microsoft.com/nanoserver/2016/05/27/nano-server-tp5-iaas-image-in-azure-updated/. ACMESharp 0.8.1 installed from PowerShell Gallery.

Followed the "Quick Start" directions:

PS> Install-Module -Name ACMESharp
PS> Import-Module ACMESharp
PS> Initialize-ACMEVault
The type initializer for 'ACMESharp.POSH.InitializeVault' threw an exception.
    + CategoryInfo          : NotSpecified: (:) [Initialize-ACMEVault], TypeInitializationException
    + FullyQualifiedErrorId : System.TypeInitializationException,ACMESharp.POSH.InitializeVault

PS>

Am I missing something?

WallyRanson commented 7 years ago

Does your server have the complete .Net Framework 4.5 installed?

WallyRanson commented 7 years ago

Also found this (https://technet.microsoft.com/en-us/windows-server-docs/get-started/powershell-on-nano-server) which might be related to the error. Ebekker might be able to give some more info on that, but the Nano Server is as such not a supported OS according to the WIKI (https://github.com/ebekker/ACMESharp/wiki/Requirements).

john-connett commented 7 years ago

According to https://www.pluralsight.com/blog/it-ops/microsoft-nano-server-announced Nano Server "can't run the full .NET Framework" just .NET Core. My guess is that might explain the problem.