4

Sometimes Sitecore 9 SIF installation script fails as multiple certificates found with same DNS name.

It may happened when you try to install Sitecore 9 using SIF and somehow it got failed due to any reason. You may tried to reinstall it. And If you tried to reinstall it with different user account, your SIF script might get failed with below exception.

Cannot process argument transformation on parameter 'Signer'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type

I found the solution here and to continue with installation, I need to remove all already installed certificates but I don’t know, how to remove those from my system?

3 Answers 3

13

If you already know the thumbprint id (listed in the SIF console error), you can execute below PowerShell script to delete

Get-ChildItem Cert:\LocalMachine\Root\<<thumbprint>> | Remove-Item

If you want to list of installed certificate for the location, you can execute below script to get that list.

Set-Location Cert:\LocalMachine\Root
Get-ChildItem | Format-Table Subject, FriendlyName, Thumbprint -AutoSize
3
  • It resolved my issue. Thanks Arvind for this post.
    – Jitendra
    Commented Jun 3, 2018 at 8:50
  • Hi @Jitendra, kindly vote up both question and answer. This would help other user to get confidence on it. Commented Jun 4, 2018 at 6:10
  • I'd also mention that the <<thumbprint>> is the <<firststring>> located in the xconnect-createcert.log file at Found Cert with thumbprint: <<firststring>> <<secondstring>> Commented Jun 10, 2020 at 16:37
1

From Habitat (feature/v9), they have powershell scripts to do this job

  1. Settings.ps1

enter image description here

  1. uninstall-xp0.ps1

enter image description here

  1. The underline of Remove-SitecoreCertificate function at Uninstall.psm1

enter image description here

Hope it's useful.

0

You can go to your "mmc" by writting "mmc" in your start and a popup will be shown click File>Add/remove snap-ins and then add certificates and from this folder you can remove the certifcate that were added by sitecore installation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.