You noticed an issue while trying to open the "Certificate Management" (under SMP Console> Settings>All Settings> Notification Server) and/or "Cloud-enabled Management Agent IIS Website Settings" (under SMP Console> Notification Server> Cloud-Enabled Management) pages.
The NS logs shows errors like these:
Entry 1:
HTTP Request failed:/Altiris/NS/Admin/ConfiguratioUnknown error (0x80005000)
Entry 2:
Failed to process web request.Exception of type 'System.Web.HttpUnhandledExcep[System.Web.HttpUnhandledExcepat System.Web.UI.Page.HandleErrorat System.Web.UI.Page.ProcessRequat System.Web.UI.Page.ProcessRequat System.Web.UI.Page.ProcessRequat System.Web.UI.Page.ProcessRequat Altiris.NS.UI.Controls.PageCacat Altiris.NS.UI.AltirisPage.ProcUnknown error (0x80005000)
The following errors are also seen:
Entry 3:
NegotiateCertificateRequest.PrUnknown error (0x80005000)
Entry 4:
Certificate generation failed with exception.Cannot find object or property
Entry 5:
Failed to process master certificate loading.Cannot find object or property
Entry 6:
Failed to get certificate private key property length.Failure code:-2146885628
When using SIM to Reconfigure NS Settings this error was returned:
Failed to load IIS WebSite server information
Unknown error (0x80005000)[System.Runtime.InteropService
at System.DirectoryServices.Direc
at System.DirectoryServices.Direc
at System.DirectoryServices.Direc
at System.DirectoryServices.Direc
at Symantec.Installation.Model.NS
The Application event logs showed:
Log Name: ApplicationSource: ASP.NET 4.0.30319.0Date: 6/26/2019 9:09:10 AMEvent ID: 1309Task Category: Web EventLevel: WarningKeywords: ClassicUser: N/AComputer: <MySMPserver>.<yourdomain>.comDescription:Event code: 3005Event message: An unhandled exception has occurred.Event time: 6/26/2019 9:09:10 AMEvent time (UTC): 6/26/2019 1:09:10 PMEvent ID: a07b0f772c904289b676d764c04923Event sequence: 5551Event occurrence: 6Event detail code: 0Application information:Application domain: /LM/W3SVC/1/ROOT/Altiris/NS-2-Trust level: FullApplication Virtual Path: /Altiris/NSApplication Path: D:\Program Files\Altiris\Notification Server\Web\Machine name: MySMPserverProcess information:Process ID: 3596Process name: w3wp.exeAccount name: IIS APPPOOL\SMP Server AppPoolException information:Exception type: COMExceptionException message: Unknown error (0x80005000)at System.DirectoryServices.Direc
at System.DirectoryServices.Direc
at Altiris.NS.Security.Cryptograp
at Altiris.NS.StandardItems.Certi
at Altiris.NS.StandardItems.Certi
at Altiris.NS.StandardItems.Certi
at Altiris.NS.StandardItems.Certi
at Altiris.NS.StandardItems.Certi
at Altiris.NS.UI.Admin.Configurat
at Altiris.NS.UI.Admin.Configurat
at System.Web.UI.Control.OnLoad(E
at Altiris.NS.UI.Controls.PageCac
at System.Web.UI.Control.LoadRecu
at System.Web.UI.Page.ProcessRequ
Multiple errors referring to "Unknown error (0x80005000)"
ITMS 8.0 or later
Issues accessing or reading "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys". This is a Microsoft issue caused by having problems encrypting/decrypting. IIS depends on this key for encryption/decryption of metabase keys.
Since this is an issue with Microsoft's MachineKeys, the following steps are provided as best effort. We recommend contacting Microsoft Support if the mentioned steps doesn't solve the issue.
Try the following:
A) Give your user (In our case, the user should be the NS App Identity) Full Access to the following folder: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
Note: Make sure that the MachineKeys folder has Full Control for both Administrators and System. Also make sure that the “C23” key has "Administrators" and "System" Full Control permissions set on it.
We've found that in some occasions the permissions in the MachineKeys directory needed to have the service account (App Identity) added instead of just the administrators group:
If providing Full Control permissions to your Application Identity account doesn't solve this problem, see if you have the following issue with messages about "The IIS Admin Service terminated with the following service-specific error: Invalid Signature". Also check if you have issues starting the ApplPools like mentioned in "Error: The worker process for application pool 'SMP Server AppPool' encountered an error 'Failed to decrypt attribute 'password' because the keyset does not exist".
B) If the steps suggested in step A above don't help, please review this Microsoft Article: Windows Troubleshooting: could not start the IIS Admin Service - error code -2146893818
Uninstall and then reinstall just the "IIS 6 Metabase Compatibility" Role Service should help you to solve some issues accessing to the private keys that our pages are trying to access by IIS:
"Application Pools fails to start. Unable to load SMP Console. Error: The worker process for application pool 'SMP Server AppPool' encountered an error 'Failed to decrypt attribute 'password' because the keyset does not exist"