Sitecore 9 Initial Release on Windows Server 2012 R2 SIF – part 2

Finally I managed to install Sitecore 9 on a Windows 2012 R2. As you can read in my previous blog post – Sitecore 9 Initial Release on Windows Server 2012 R2 SIF – part 1  – Sitecore Installation Framework have some issues with Certificates creation on OS with IIS 8.5 (Windows 2012 R2 and Windows 8.x).

I will describe my work around

First I created new certificate on my laptop running on Windows 10

Import-Module SitecoreFundamentals
Import-Module SitecoreInstallFramework

#define parameters 
$prefix = "xxx-cm9"
$FilesRoot = "C:\Sitecore"
 
#install client certificate for xconnect 
$certParams = 
@{ 
 Path = "$FilesRoot\xconnect-createcert.json" 
 CertificateName = "$prefix.xconnect_client.xxx.com" 
} 
Install-SitecoreConfiguration @certParams -Verbose

Then I exported that certificate

export

It will create .crt file. Copy this file on your Windows 2012 R2 server into certificates  folder.

exp2

Then import the certificate  into IIS.

Then I run this script. Please do not forget edit all values in RED

#define parameters 
$prefix = "xxx-cm9" 
$PSScriptRoot = “C:\Sitecore” 
$XConnectCollectionService = "xxx-cm9.xconnect_client.xxx.com" 
$sitecoreSiteName = "xxx-cm9.xxx.com" 
$SolrUrl = "https://localhost:8983/solr" 
$SolrRoot = "C:\solr-6.6.2" 
$SolrService = "solr" 
$SqlServer = "QCVTWSC9" 
$SqlAdminUser = "sa" 
$SqlAdminPassword="mytopsecretpassword"




#install solr cores for xdb 
$solrParams = @{ 
Path = "$PSScriptRoot\xconnect-solr.json" 
SolrUrl = $SolrUrl 
SolrRoot = $SolrRoot 
SolrService = $SolrService 
CorePrefix = $prefix 
} 
Install-SitecoreConfiguration @solrParams

#deploy xconnect instance 
$xconnectParams = @{ 
Path = "$PSScriptRoot\xconnect-xp0.json" 
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_xp0xconnect.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml" 
Sitename = $XConnectCollectionService 
XConnectCert = "xxx-cm9.xconnect_client.xxx.com" 
SqlDbPrefix = $prefix 
SqlServer = $SqlServer 
SqlAdminUser = $SqlAdminUser 
SqlAdminPassword = $SqlAdminPassword 
SolrCorePrefix = $prefix 
SolrURL = $SolrUrl 
} 
Install-SitecoreConfiguration @xconnectParams -SSLCert "‎b4cd309eb6cbc115fb5492f9aaf371dbacd5920e"

#install solr cores for sitecore 
$solrParams = @{ 
Path = "$PSScriptRoot\sitecore-solr.json" 
SolrUrl = $SolrUrl 
SolrRoot = $SolrRoot 
SolrService = $SolrService 
CorePrefix = $prefix 
} 
Install-SitecoreConfiguration @solrParams

#install sitecore instance 
$xconnectHostName = "xxx-cm9.xconnect_client.xxx.com" 
$sitecoreParams = @{ 
Path = "$PSScriptRoot\sitecore-XP0.json" 
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_single.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml" 
SqlDbPrefix = $prefix 
SqlServer = $SqlServer 
SqlAdminUser = $SqlAdminUser 
SqlAdminPassword = $SqlAdminPassword 
SolrCorePrefix = $prefix 
SolrUrl = $SolrUrl 
XConnectCert = "xxx-cm9.xconnect_client.xxx.com"
Sitename = $sitecoreSiteName 
XConnectCollectionService = "https://$XConnectCollectionService" 
} 
Install-SitecoreConfiguration @sitecoreParams

Important. Please add -SSLCert parameter to xconnect installation comdlet. Value in BLUE comes from  Thumbprint property of your previously created certificate.

 

thum

One thought on “Sitecore 9 Initial Release on Windows Server 2012 R2 SIF – part 2

  1. Pingback: Sitecore 9 Initial Release on Windows Server 2012 R2 SIF – part 1 | Urban Sitecore

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s