A family of Microsoft on-premises document management and storage systems.
Thank you for posting your question in the Microsoft Q&A forum
Based on your description and the error message: "Server Error in '/' Application. The requested service, http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc could not be activated.", this issue is related to the Security Token Service (STS) certificate update not being successfully applied across all servers in the SharePoint farm.
When the STS certificate expires and is replaced, the update must be synchronized to every server in the farm. If one or more servers fail to receive the update, authentication will break and SharePoint sites will become inaccessible, which matches the behavior you are experiencing.
Additionally, the PowerShell message: “The timer job completed, but failed on one or more machines in the farm” confirms that the certificate deployment did not complete successfully across the environment.
To resolve this, please check the following:
1.Verify certificate installation on all SharePoint servers
-The new STS certificate including its private key must be present in the Local Computer > Personal (My) certificate store.
-Confirm this on every server in the farm.
2.Re-run the STS certificate update command
-Please refer to the following Microsoft documentation: Replace the STS certificate for SharePoint Server - SharePoint Server | Microsoft Learn.
-Ensure the update completes successfully on all servers, then restart IIS and the SharePoint Timer Service.
I hope this helps.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.