When attempting to add or update a certificate binding in IIS for the Cloud-Enabled Management (CEM) site on a Notification Server, the following error is displayed: "A specified logon session does not exist. It may already have been terminated"
This issue often prevents the generation of CEM agent packages and indicates a problem with the certificate's private key or its location in the Windows Certificate Store:
"Failed to generate package" when generating CEM agent packages
This error occurs if the .PFX certificate was originally imported into the current user's store instead of the local computer's store, or if the private key became corrupted during a previous import attempt.
To resolve this error, you must re-import the certificate into the correct store and ensure the private key is properly associated.
Open Microsoft Management Console (MMC):
mmc, and press Enter.Export the Existing Certificate:
Delete and Re-import:
Update IIS Binding: