If you have Sitecore XP 9.1 installed by SIF 2.0, installation of XP 9.0 Update-2 may fail with the following error when SIF 1.2.x is used:
TerminatingError(New-SignedCertificate): "Cannot process argument transformation on parameter 'Signer'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Security.Cryptography.X509Certificates.X509Certificate2"." Install-SitecoreConfiguration : Cannot process argument transformation on parameter 'Signer'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Security.Cryptography.X509Certificates.X509Certificate2".
If you remove the certificates, installation can proceed successfully but the Sitecore XP 9.1 instance itself will be broken with certificate errors.
Perform the following steps to resolve the issue:
# Install client certificate for xconnect $certParams = @{ Path = "$SCLocation\xconnect-createcert.json" CertificateName = "$prefix.xconnect_client" RootCertFileName = "SIF121Root" } Install-SitecoreConfiguration @certParams -Verbose
Import-Module -Name SitecoreInstallFramework -RequiredVersion 1.2.х