On the primary site server if we are trying to install SQL on the primary site server and prompt out below error in ConfigmgrSetup.log
05-13-2021 10:09:42.118 Configuration Manager Setup 11432 (0x2d0c) ~FQDN for server test1 is test1.mecmtechie.com
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) Cannot write CertBootStrap\SMS_SQL_SERVER\ registry key on server test1. The operating system reported error 4.
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) SetCertRegistryRemote failed with error 0x80004005
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) ERROR: Failed to write certificate configuration to registry on server test1
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) ERROR: Failed to create SQL Server [test1.mecmtechie.com] certificate remotely.
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) ERROR: Failed to create SQL Always On certificate.
05-13-2021 10:09:42.134 Configuration Manager Setup 11432 (0x2d0c) ~~===================== Failed Configuration Manager Server Setup - Modify Site Settings ====
To resolve above issue follow below steps:
Local Administrator rights on the SQL Server
Sysadmin role in SQL Security
Key does not exist in the registry path Hkey_Local_machine\Software\Microsoft\SMS.