SharePoint 2013 prerequisites installer fails with a "The Certificate for the signer of the message is invalid or not found" error.

Symptoms
When you try to install the SharePoint 2013 prerequisites offline (Foundation or Server) on Windows Server 2012, the installer fails with the following error when you try to install "Windows Identity Foundation 1.0":
Windows Update Standalone Installer
Installer encountered an error : 0x80096002
The Certificate for the signer of the message is invalid or not found.

Cause
Missing Windows Identity Foundation (WIF) 3.5 feature on the server.

Resolution
Install the Windows Features for SharePoint manually either from Server Manager UI or the PowerShell command prompt.

Follow these steps from the Server ManagerUI
1. Start the Server Manager 2012.
2. Go to Manage and select "Add Roles and Features".
3. Click through the wizard until the Features selection pane.
4. Check "Windows Identity Foundation 3.5"
5. Finish the wizard and click Done.

To install from PowerShell, run the following commands in an elevated Windows PowerShell Command Prompt window.
>> Import-Module Servermanager
>> Add-WindowsFeature Windows-Identity-Foundation


You may continue installing the other prerequisites as WIF 1.0 is installed now.

More Information

Windows Identity Foundation is built into Windows Server 2012 and can be installed via the Server Manager.

Install Microsoft Identity Extensions (previously named WIF 1.1) from http://go.microsoft.com/fwlink/p/?linkid=252368