Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS required but I using Apache24 #47

Open
metacreo opened this issue Jul 13, 2023 · 1 comment
Open

IIS required but I using Apache24 #47

metacreo opened this issue Jul 13, 2023 · 1 comment

Comments

@metacreo
Copy link

Win server 2008 R2 sp1 no iis, apache24 used
'2023-07-13 14:31:54.7629|INFO|Generated orders and validated challenges for domains: www.com
2023-07-13 14:32:00.4725|INFO|Retrieved certificate from the CA. The certificate is in C:\ProgramData\WinCertes\CertsTmp\67f268ac-8aa1-4420-96c2-20f643b9146c.pfx
2023-07-13 14:32:00.5817|INFO|Stored certificate with DN CN=www.com into Windows Personal Local Machine store
2023-07-13 14:32:00.6441|ERROR|Could not bind certificate to site www.com: Retrieving the COM class factory for component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstanceT
at Microsoft.Web.Administration.ConfigurationManager.CreateAdminManager[TClass,TInterface](WebConfigurationMap webConfigMap, Boolean isAdminConfig)
at Microsoft.Web.Administration.ConfigurationManager.CreateConfiguration(WebConfigurationMap configMap, String configPathToEdit, Boolean isAdminConfig)
at Microsoft.Web.Administration.ConfigurationManager.GetConfiguration(String rawConfigurationPath, String cacheKey, Boolean isAdminConfig)
at Microsoft.Web.Administration.ServerManager.get_SitesSection()
at Microsoft.Web.Administration.ServerManager.get_Sites()
at WinCertes.Utils.BindCertificateForIISSite(X509Certificate2 certificate, String siteName, Int32 port)
2023-07-13 14:32:00.7065|INFO|Removed files from filesystem: C:\ProgramData\WinCertes\CertsTmp\67f268ac-8aa1-4420-96c2-20f643b9146c.pfx, C:\ProgramData\WinCertes\CertsTmp\67f268ac-8aa1-4420-96c2-20f643b9146c.cer, C:\ProgramData\WinCertes\CertsTmp\67f268ac-8aa1-4420-96c2-20f643b9146c.key'

@hqiasjehrlb
Copy link

Facing the same problem, and I use the --scriptfile=... argument to run script for copy certificate files (ref).

But finally I got an error:

Could not execute ...: Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly 'Microsoft.PowerShell.Commands' or one of its dependencies.

Anyone can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants