Error: "Failed to generate package" when generating CEM agent packages. Value cannot be null. Parameter name: array

book

Article ID: 222679

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

The customer is trying to create a new CEM Installation package. The package creation fails with the following error:

"Failed to generate package. Value cannot be null. Parameter name: array

The NS logs show the following messages:

Error 1:

NegotiateCertificateRequest.Process() failed to get certificate chaing of agent web site.

Value cannot be null.
Parameter name: array
   [System.ArgumentNullException @ mscorlib]
   at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetAgentWebCertificateGuid()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.NSCertificateItemLoader.LoadAndRegisterItems()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.InitializeCertificateCache(Type type)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.GetNSCertificate(Guid resourceGuid)
   at Altiris.NS.StandardItems.CertificateConfiguration.CEMDigitalCertificateChainBuilder.BuildChain(String thumbprint, Boolean bIncludePrivateKey)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.GetAdditionalCertificates(String& sOutputXml)

Exception logged from: 
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.GetAdditionalCertificates(String&)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.GenerateLegacyResponse(String, Altiris.NS.AgentManagement.AgentCertificateDistributer+CertificateRequestData, System.Guid, Boolean, System.Security.Cryptography.X509Certificates.X509Certificate2&, System.Security.Cryptography.X509Certificates.X509Certificate2&)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.Process(String, System.Guid, Boolean, Boolean, Byte[]&, System.Collections.Generic.Dictionary`2[System.String,System.Security.Cryptography.X509Certificates.X509Certificate2]&, Altiris.NS.AgentManagement.ICertificateDistributor)
   at Altiris.Web.NS.Agent.GetClientCertificateHandler.HandleRequest(System.Web.HttpContext, Altiris.Web.NS.Agent.ClientCertificateRequestData, Int32)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext, T, Int32)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [domain\_AltirisSrv], Auth [domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS/Agent-1-132743955454362976]

HTTP [POST]: https://smpserver.domain.local/altiris/NS/Agent/GetClientCertificateMig.aspx?Encrypted=1
 ip: [10.220.80.102]; x-sma-version: [8.5.5713.0]; content-length: [1744];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];

-----------------------------------------------------------------------------------------------------
Date: 26/8/2021 15:35:14, Tick Count: 80996453 (22:29:56.4530000), Size: 3,63 KB
Process: w3wp (4092), Thread ID: 220, Module: Altiris.NS.dll
Priority: 1, Source: Altiris.NS.AgentManagement.NegotiateCertificateRequest.GetAdditionalCertificates

Error 2:

Failed to parse store name for certificate defined by thumbprint 'A019486E4BC0774E3FAD07FF4C2875E3FFE3CA8D'. Certificate lookup will be performed.

Requested value 'WebHosting' was not found.
   [System.ArgumentException @ mscorlib]
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)

Exception logged from: 
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String, Boolean)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetNSWebCertificateGuid()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager+NSCertificateItemLoader.LoadAndRegisterItems()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.InitializeCertificateCache(Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager+CertificateEntry+Type)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.GetNSCertificate(System.Guid)
   at Altiris.NS.StandardItems.CertificateConfiguration.CEMDigitalCertificateChainBuilder.BuildChain(String, Boolean)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.GetAdditionalCertificates(String&)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.GenerateLegacyResponse(String, Altiris.NS.AgentManagement.AgentCertificateDistributer+CertificateRequestData, System.Guid, Boolean, System.Security.Cryptography.X509Certificates.X509Certificate2&, System.Security.Cryptography.X509Certificates.X509Certificate2&)
   at Altiris.NS.AgentManagement.NegotiateCertificateRequest.Process(String, System.Guid, Boolean, Boolean, Byte[]&, System.Collections.Generic.Dictionary`2[System.String,System.Security.Cryptography.X509Certificates.X509Certificate2]&, Altiris.NS.AgentManagement.ICertificateDistributor)
   at Altiris.Web.NS.Agent.GetClientCertificateHandler.HandleRequest(System.Web.HttpContext, Altiris.Web.NS.Agent.ClientCertificateRequestData, Int32)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext, T, Int32)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [domain\_AltirisSrv], Auth [domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS/Agent-1-132743955454362976]

HTTP [POST]: https://smpserver.domain.local/altiris/NS/Agent/GetClientCertificateMig.aspx?Encrypted=1
 ip: [10.220.80.102]; x-sma-version: [8.5.5713.0]; content-length: [1744];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];

-----------------------------------------------------------------------------------------------------
Date: 26/8/2021 15:35:14, Tick Count: 80996328 (22:29:56.3280000), Size: 3,81 KB
Process: w3wp (4092), Thread ID: 220, Module: Altiris.NS.dll
Priority: 2, Source: Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate

 

Also, the following CEM (Cloud-enabled Management) pages also failed:

  • Cloud-enabled Management Agent IIS Website Settings
  • Certificate Management

 

For the "Cloud-enabled Management Agent IIS Website Settings" page, the following error is added in the NS logs:

HTTP Request failed:
 /Altiris/NS/Admin/ClientManagement/AgentSiteSettingsPage.aspx?TreeGuid=d2c6fca2-ae7a-46f4-bf54-a6ce9fc39267&ItemGuid=8905967a-d26b-44b6-95f1-bc17ea1c6608&ParentGuid=00000000-0000-0000-0000-000000000000&Url=https%3a%2f%2fb1842zacs0055.correo.local%2fAltiris%2fConsole%2ftree.aspx%3fTreeGuid%3dD2C6FCA2-AE7A-46F4-BF54-A6CE9FC39267%26%26ConsoleGuid%3d1b22db4e-a898-443f-9b99-855b1653d3f5&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5


Value cannot be null.
Parameter name: array
   [System.ArgumentNullException @ mscorlib]
   at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetAgentWebCertificateGuid()
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.PopulateCertificates(String sSelThumbprint)
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.PopulateFields()
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at Altiris.NS.UI.Controls.PageCachePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Exception logged from: 
   at Altiris.NS.UI.AltirisWebApplication.ReportApplicationError(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisWebApplication.Application_Error(Object, EventArgs)
   at System.Web.HttpApplication.RaiseOnError()
   at System.Web.HttpApplication.RecordError(Exception)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [domain\_AltirisSrv], Auth [domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS-2-132743922352969835]

HTTP [GET]: https://smpserver.domain.local/Altiris/NS/Admin/ClientManagement/AgentSiteSettingsPage.aspx?TreeGuid=d2c6fca2-ae7a-46f4-bf54-a6ce9fc39267&ItemGuid=8905967a-d26b-44b6-95f1-bc17ea1c6608&ParentGuid=00000000-0000-0000-0000-000000000000&Url=https://smpserver.domain.local/Altiris/Console/tree.aspx?TreeGuid=D2C6FCA2-AE7A-46F4-BF54-A6CE9FC39267&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
 ip: [10.1.12.125]; languages: [en-US,en;q=0.9];
 timings: [[R] 00:00:00.0609889(W: 00:00:00.0009854)];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];
timings: [R] 00:00:00.0609889(W: 00:00:00.0009854)
-----------------------------------------------------------------------------------------------------
Date: 25/8/2021 16:15:25, Tick Count: 13977859 (03:52:57.8590000), Size: 3,62 KB
Process: w3wp (7456), Thread ID: 8, Module: w3wp.exe
Priority: 1, Source: WebApplication

 

The "Certificate Management" page generates the following entries in the NS logs:

Entry 1:

Failed to process web request.

Exception of type 'System.Web.HttpUnhandledException' was thrown.
   [System.Web.HttpUnhandledException @ System.Web]
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(HttpContext context)
   at Altiris.NS.UI.AltirisPage.ProcessRequest(HttpContext context)

Value cannot be null.
Parameter name: array
   [System.ArgumentNullException @ mscorlib]
   at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetAgentWebCertificateGuid()
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.PopulateCertificates(String sSelThumbprint)
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.PopulateFields()
   at Altiris.NS.UI.Admin.ClientManagement.AgentSiteSettingsPage.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at Altiris.NS.UI.Controls.PageCachePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Exception logged from: 
   at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [Domain\_AltirisSrv], Auth [Domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS-2-132743922352969835]

HTTP [GET]: https://smpserver.domain.local/Altiris/NS/Admin/ClientManagement/AgentSiteSettingsPage.aspx?TreeGuid=d2c6fca2-ae7a-46f4-bf54-a6ce9fc39267&ItemGuid=8905967a-d26b-44b6-95f1-bc17ea1c6608&ParentGuid=00000000-0000-0000-0000-000000000000&Url=https://smpserver.domain.local/Altiris/Console/tree.aspx?TreeGuid=D2C6FCA2-AE7A-46F4-BF54-A6CE9FC39267&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
 ip: [10.1.12.125]; languages: [en-US,en;q=0.9];
 timings: [[R] 00:00:00.0609889(W: 00:00:00.0009854)];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];

-----------------------------------------------------------------------------------------------------
Date: 25/8/2021 16:15:25, Tick Count: 13977859 (03:52:57.8590000), Size: 3,93 KB
Process: w3wp (7456), Thread ID: 8, Module: Altiris.NS.UI.dll
Priority: 1, Source: Altiris.NS.UI.AltirisPage.ProcessRequest

 

Entry 2:

HTTP Request failed:
 /Altiris/NS/Admin/Configuration/CertificateManagementPage.aspx?Url=https%3a%2f%2fsmpserver.domain.local%2fAltiris%2fConsole%2ftree.aspx%3fViewGuid%3da57fb0e9-0676-4e00-929a-6bb37dc1f888%26%26ConsoleGuid%3d1b22db4e-a898-443f-9b99-855b1653d3f5&TreeGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ParentGuid=00000000-0000-0000-0000-000000000000&ItemGuid=bff56118-7fb8-418b-b4b4-1a46f22c9d7c&ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5


Value cannot be null.
Parameter name: array
   [System.ArgumentNullException @ mscorlib]
   at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetAgentWebCertificateGuid()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.NSCertificateItemLoader.LoadAndRegisterItems()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.InitializeCertificateCache(Type type)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.LoadCertificatesByType(Type type, CertificateConsumer eConsumer, DataTable dt)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.LoadCertificates(CertificateConsumer eConsumer)
   at Altiris.NS.UI.Admin.Configuration.CertificateManagementPage.LoadDataSource(CertificateConsumer eConsumer, CertificateStatus eStatus)
   at Altiris.NS.UI.Admin.Configuration.CertificateManagementPage.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at Altiris.NS.UI.Controls.PageCachePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Exception logged from: 
   at Altiris.NS.UI.AltirisWebApplication.ReportApplicationError(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisWebApplication.Application_Error(Object, EventArgs)
   at System.Web.HttpApplication.RaiseOnError()
   at System.Web.HttpApplication.RecordError(Exception)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [Domain\_AltirisSrv], Auth [Domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS-2-132743922352969835]

HTTP [GET]: https://smpserver.domain.local/Altiris/NS/Admin/Configuration/CertificateManagementPage.aspx?Url=https://smpserver.domain.local/Altiris/Console/tree.aspx?ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&TreeGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ParentGuid=00000000-0000-0000-0000-000000000000&ItemGuid=bff56118-7fb8-418b-b4b4-1a46f22c9d7c&ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
 ip: [10.1.12.125]; languages: [en-US,en;q=0.9];
 timings: [[R] 00:00:01.0657472(W: 00:00:00.0670056)];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];
timings: [R] 00:00:01.0657472(W: 00:00:00.0670056)
-----------------------------------------------------------------------------------------------------
Date: 25/8/2021 16:18:39, Tick Count: 14171359 (03:56:11.3590000), Size: 4,21 KB
Process: w3wp (7456), Thread ID: 72, Module: w3wp.exe
Priority: 1, Source: WebApplication

 

Entry 3:

Failed to process web request.

Exception of type 'System.Web.HttpUnhandledException' was thrown.
   [System.Web.HttpUnhandledException @ System.Web]
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(HttpContext context)
   at Altiris.NS.UI.AltirisPage.ProcessRequest(HttpContext context)

Value cannot be null.
Parameter name: array
   [System.ArgumentNullException @ mscorlib]
   at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter)
   at Altiris.NS.Security.Cryptography.CertificateManager.GetSiteHttpsCertificate(String siteName, Boolean includePrivateKey)
   at Altiris.NS.StandardItems.CertificateConfiguration.NSCertificateConfigurationItem.GetAgentWebCertificateGuid()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.NSCertificateItemLoader.LoadAndRegisterItems()
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.InitializeCertificateCache(Type type)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.LoadCertificatesByType(Type type, CertificateConsumer eConsumer, DataTable dt)
   at Altiris.NS.StandardItems.CertificateConfiguration.CertificateConfigurationManager.LoadCertificates(CertificateConsumer eConsumer)
   at Altiris.NS.UI.Admin.Configuration.CertificateManagementPage.LoadDataSource(CertificateConsumer eConsumer, CertificateStatus eStatus)
   at Altiris.NS.UI.Admin.Configuration.CertificateManagementPage.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at Altiris.NS.UI.Controls.PageCachePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Exception logged from: 
   at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

User [Domain\_AltirisSrv], Auth [Domain\_AltirisSrv], AppDomain [/LM/W3SVC/1/ROOT/Altiris/NS-2-132743922352969835]

HTTP [GET]: https://smpserver.domain.local/Altiris/NS/Admin/Configuration/CertificateManagementPage.aspx?Url=https://smpserver.domain.local/Altiris/Console/tree.aspx?ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&TreeGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ParentGuid=00000000-0000-0000-0000-000000000000&ItemGuid=bff56118-7fb8-418b-b4b4-1a46f22c9d7c&ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
 ip: [10.1.12.125]; languages: [en-US,en;q=0.9];
 timings: [[R] 00:00:01.0647483(W: 00:00:00.0670056)];
 response: [200 OK]; x-smp-nsversion: [8.5.5713.0];

-----------------------------------------------------------------------------------------------------
Date: 25/8/2021 16:18:39, Tick Count: 14171359 (03:56:11.3590000), Size: 4,48 KB
Process: w3wp (7456), Thread ID: 72, Module: Altiris.NS.UI.dll
Priority: 1, Source: Altiris.NS.UI.AltirisPage.ProcessRequest

Cause

The "Symantec Agent" website didn't have the expected certificate

Environment

ITMS 8.5, 8.6

Resolution

Try the following:

  1. Open IIS Manager and go to Sites>Symantec Agent
  2. Under Bindings (right-side frame), click on the CEM port (usually 4726)
  3. Make sure that there is a certificate assigned to it. In the error message mentioned earlier,
    Failed to parse store name for certificate defined by thumbprint 'A019486E4BC0774E3FAD07FF4C2875E3FFE3CA8D'. Certificate lookup will be performed.

    it indicates what certificate is looking for by the mentioned thumbprint.

    Note:
    If there is no a certificate assigned to the CEM port, add one

Attachments