LetsEncrypt Certifi...
 
Notifications
Clear all

LetsEncrypt Certificate Generation Error

13 Posts
3 Users
0 Reactions
3,139 Views
Posts: 60
 Ric
Topic starter
(@ric)
Trusted Member
Joined: 9 years ago

Same issue I'm afraid.

Reply
Posts: 4
(@sebadler)
Active Member
Joined: 9 years ago

Same Issue for me.

Windows 2016 Server with IIS10
SolidCP 1.2.0
Enterprise & Portal Server on different server

I also had trouble upgrading solidCP and had to do it manually.
I went straight from 1.1.2 to 1.2.0

I tried your suggestion as well, but with no luck.

I noticed the 2 non-existing paths in the event log below:

Windows Event Log (SolidCP)

[4/5/2017 10:27:51 AM] ERROR: Unable to get or create Vault Profile with storage. Profilename: XXX Internal, ProfileRootPath: %SYSTEMDRIVE%ProgramDataACMESharpvaultProfiles
System.Management.Automation.CmdletInvocationException: The type initializer for 'ACMESharp.Util.JsonHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ACMESharp.Util.JsonHelper' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at ACMESharp.Util.JsonHelper..cctor()
--- End of inner exception stack trace ---
at ACMESharp.Util.JsonHelper.Load[T](Stream s)
at ACMESharp.Vault.Profile.VaultProfileManager.GetProfile(String name) in C:projectsacmesharpACMESharpACMESharp.VaultProfileVaultProfileManager.cs:line 225
at ACMESharp.POSH.GetVaultProfile.ProcessRecord() in C:projectsacmesharpACMESharpACMESharp.POSHGetVaultProfile.cs:line 35
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at SolidCP.Providers.Web.RunspaceHelper.ExecuteShellCommand(Runspace runSpace, Command cmd, Boolean useDomainController, Object[]& errors)
at SolidCP.Providers.Web.LetsEncrypt..ctor(String vaultProfileName, String vaultRootPath, Boolean staging)

Reply
Posts: 1509
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hi,

 

Its strange your having issues. I have retested this and it appears to work fine. Can you please try run the following PowerShell commands and their output:

 

Import-Module ACMESharp

Get-ACMEVaultProfile

 

Its expected the import-module will not give any output.

 

Kind Regards,

 

Trevor Robinson

Reply
Posts: 60
 Ric
Topic starter
(@ric)
Trusted Member
Joined: 9 years ago

Hi,

See below:

Reply
Posts: 4
(@sebadler)
Active Member
Joined: 9 years ago

Problem was solved for me by doing the following:

NB! please note that this is NOT A STANDALONE server!

  1. In SolidCP Portal Page I disabled Lets Encrypt and removed the Vault path
  2. In PowerShell: Uninstall-Package ACMESharp -verbose -force
  3. Backup/copy Folder C:SolidCP and moved to a safe location
  4. In SolidCP Installer -> Components -> SolidCP Server 1.2.0: Click Uninstall
  5. Closed Installer
  6. in ControlPanel -> Program And Features: Uninstall Solid CP Installer
  7. Removed old ACMESharp Vault by deleting the folder in ProgramData Folder
  8. reboot server
  9. Download SolidCP 1.2.0 Installer And unblocked the file
  10. Installed SolidCP 1.2.0 Installer
  11. Start SolidCP 1.2.0 Installer with Run As Administrator
  12. Installed the Server Component
  13. From Command Prompt I did an IISRESET
  14. Checked that the SolidCP Statuspage came up both internally and externally
  15. Followed the Let's Encrypt Install Guide from:  https://solidcp.com/kb/configuration/setup-lets-encrypt/
  16. Certificate Installed without a problem

This was a very old install that has been upgraded several times.
I decided to re-install all Servers following the above procedure.

Hope it helps.

 

Sebastian Adlercreutz

Reply
Page 2 / 3
Share: