Sitecore XP 9.1が同じPCにインストールされている場合にXP 9.0 Update-2のインストールが失敗する


解説

SIF 2.0でインストールしたSitecore XP 9.1がある場合、SIF 1.2.xを使用するとXP 9.0 Update-2のインストールに失敗し、次のエラーが発生する場合があります:

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".

証明書を削除すると、インストールは正常に行えますが、Sitecore XP 9.1インスタンス自体は証明書エラーで破損します。

解決策

以下の手順を実施して事象を解決することができます。

  1. Sitecore XP 9.0 Update-2のインストール スクリプトを編集し、xconnect-createcert.jsonパラメータを使用して、証明書を生成するセクションに「RootCertFileName」パラメータを追加してください。RootCertFileNameパラメータには、任意の一意の値を指定することができます。例:
    # Install client certificate for xconnect
    $certParams = @{
      Path = "$SCLocation\xconnect-createcert.json"
      CertificateName = "$prefix.xconnect_client"
      RootCertFileName = "SIF121Root"
    }
    Install-SitecoreConfiguration @certParams -Verbose
  2. 以下のコマンドを使用して、SIF1.2.xがPowerShellセッションでアクティブなバージョンであることを確認します:
    Import-Module -Name SitecoreInstallFramework -RequiredVersion 1.2.х
  3. 通常通り、インストール スクリプトを実行します。