Next generation StoreFront was just released as Technical Preview. The new name is X1 StoreFront and the version number states 2.7.0.9.
In this blog post I’m going to show you how to secure a new Citrix X1 StoreFront installation with SSL and some Powershell.
I’m going to use Active Directory Certificate Services to create my internal SSL certificate. If you don’t have one, you can use the Powershell script below to install and configure Enterprise CA.
1 2 3 |
Install-WindowsFeature AD-Certificate Install-AdcsCertificationAuthority -Force Install-WindowsFeature -Name Web-Server -IncludeManagementTools |
Open the IIS Management Console – Server Certificates and click Create Domain Certificate.
I’m going to create a wildcard certificate for my domain, so I’m using *.ctxlab.local (internal Domain Name) as the Common name.
Then I select the Online Certification Authority which are the server hosting the Microsoft CA Role.
Now I’m going to Export the Certificate and store it on my file server.
The final step in terms of SSL is to import and bind the certificate to ALL Citrix Delivery Controllers and StoreFront Servers.
Open the IIS Management Console – Server Certificates – Import.
Navigate to Server Name – Sites and right click Default Web Site – Edit Bindings. Click Add – HTTPS and select your SSL certificate.
This can of course be done with Powershell. Make sure to change the path, password and the Thumbprint which you find when you check your certificate details.
1 2 3 4 5 6 7 8 9 10 11 12 |
import-module webadministration $PFXPath="\\dc-01\xa\Certificates\wildcard-ctxlab.local.pfx" $PFXPassword="********" $strThumb="2ED49A1BC5A28D35995CF19BAE9C2217BEB3739B" certutil -f -importpfx -p $PFXPassword $PFXPath Push-Location IIS: cd SslBindings New-webBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https get-item cert:\LocalMachine\MY\$strThumb | new-item 0.0.0.0!443 Pop-Location |
Now it’s time to install Citrix X1 StoreFront. I’m not going to cover the next-next-finish process.
Start Citrix StoreFront and select Create a new deployment.
Let’s test it and see how it looks.
Awesome. Now with this information it’s very easy to add this to my Automation Framework.
That way when I install new Citrix XenApp / XenDesktop Delivery Controllers and Storefront Servers the certificate will be automatically imported and configured.
thanks!