At a customer lately I had an issue that my ConfigMgr 2012 R2 installation failed after the database has been configured during the setup process. After looking at the ConfigMgrSetup.log I noticed that the ConfigMgrSQLCert_PS1.cer file could not be saved to the location where the Configuration Manager Database was created.