SCCM 2012 – Failed to create SQL Server Certificate

During SCCM 2012 installation you may get “Failed to create SQL Server Certificate” error message in ConfigMgrSetup.log. This is a fatal error and will kill your setup process.

For me, it was a legacy failed SCCM installation that causes the problem. Just navigate to following directory C:ProgramDataMicrosoftCryptoRSAMachineKeys and delete related keys for your legacy installation.