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/Configuratio
Unknown error (0x80005000)
Entry 2:
Failed to process web request.
Exception of type 'System.Web.HttpUnhandledExcep
[System.Web.HttpUnhandledExcep
at System.Web.UI.Page.HandleError
at System.Web.UI.Page.ProcessRequ
at System.Web.UI.Page.ProcessRequ
at System.Web.UI.Page.ProcessRequ
at System.Web.UI.Page.ProcessRequ
at Altiris.NS.UI.Controls.PageCac
at Altiris.NS.UI.AltirisPage.Proc
Unknown error (0x80005000)
The following errors are also seen:
Entry 3:
NegotiateCertificateRequest.Pr
Unknown 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: Application
Source: ASP.NET 4.0.30319.0
Date: 6/26/2019 9:09:10 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: <MySMPserver>.<yourdomain>.com
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/26/2019 9:09:10 AM
Event time (UTC): 6/26/2019 1:09:10 PM
Event ID: a07b0f772c904289b676d764c04923
Event sequence: 5551
Event occurrence: 6
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/Altiris/NS-2-
Trust level: Full
Application Virtual Path: /Altiris/NS
Application Path: D:\Program Files\Altiris\Notification Server\Web\
Machine name: MySMPserver
Process information:
Process ID: 3596
Process name: w3wp.exe
Account name: IIS APPPOOL\SMP Server AppPool
Exception information:
Exception type: COMException
Exception 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" as mentioned in KB 173738. Also check if you have issues starting the ApplPools like mentioned in KB 172641 "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: