Keyset Does Not Exist (Mobile)
Mobile enrolment fails. Command Centre's mobile enrolment component must access the CA certificate's private key using the Network Service account or a dedicated service account. When the CA certificate is imported, the private-key permissions are often not configured correctly by default. As a result, the service cannot access the certificate, causing mobile enrolment to fail.
Log excerpt (Command_Centre.log):
2020-09-11 15:42:34:920, CCNTSad[0eb8:3bdc], INFO, EnrolmentController.Enrol Mobile Enrol Attempt: remoteIp="[REDACTED]"
2020-09-11 15:42:34:922, CCNTSad[0eb8:3bdc], TRACE, C:\build\Elmo\Common\CryptoApi.h(214): Throwing Error 80090005 Bad Data.
2020-09-11 15:42:34:923, CCNTSad[0eb8:3bdc], TRACE, completeEnrolment: Enrolment key incorrect for device 9038715 (decryption failed with error 80090005)
2020-09-11 15:42:34:938, CCNTSad[0eb8:3bdc], TRACE, C:\build\Elmo\Common\CCFTCertificate.cpp(633): Throwing Error 80090016 Keyset does not existMobile log excerpt:
ERR json error {
code = "-2146893802";
message = "Keyset does not exist";Resolution
Grant Network Service read access to the CA private key.
On the server, launch certlm.msc to open the Local Machine Certificate Manager.
Navigate to Gallagher Applications → Certificates and locate the Gallagher Command Centre CA certificate.
Drag and drop the certificate into the Personal store.
Open the Personal store, locate the CA certificate, right-click it, and select All Tasks → Manage Private Keys...
In the permissions dialog, click Add.
Select the Advanced tab, then next to the owner field click Change.
Set the owner to the local Administrators group and confirm with OK.
In From this location, change the value to the local computer name, not the domain.
In Enter the object names to select, type Network Service, then click Check Names. The name should become underlined and appear in uppercase, indicating a valid object.
Click OK. NETWORK SERVICE should now appear in the user list.
Select NETWORK SERVICE and ensure the Allow permission is enabled for Read only (Full Control is not required).
Click OK to close the private-key permissions dialog.
Move the CA certificate from the Personal store back into Gallagher Applications → Certificates.
Mobile enrolment should now function correctly.
Service restarts should not be required; however, if the issue persists, restart the Command Centre services and test again.
Log location: C:\ProgramData\Gallagher\Command Centre or the Mobile client logs.
Last updated
Was this helpful?
