Background: The scenario is you are changing the URL that clients will use for external access to your Citrix environment. Perhaps the environment has an SSL certificate for 1 website but is changing the name (ie. from storefront.contoso.com to go.contoso.com) or upgrading to a wildcard certificate. In any case, here are the general steps you can follow for this process:
- Create a Certificate Signing Request (CSR)
- Submit CSR to CA
- Download new certificate from CA
- Update External Gateway SSL Cert on NetScaler
- Update Certificate Links on NetScaler
- Update NetScaler Gateway settings on StoreFront
- Test
Pre-requisites:
- Administrative access to NetScaler device that provides external access for your environment (also required if you plan on creating your CSR from the NetScaler)
- Adminstrative access to StoreFront server
- Access to an IIS server (I will be performing CSR from here)
Steps:
- I will be using IIS Manager on my StoreFront server to create the CSR in this example.
- Logon to the server and open IIS Manager (inetmgr.exe).
- Navigate to Server Certificates.
- On the right, select Create Certificate Request
- Fill out the certificate information with your enterprise information (example below).
- Common Name: This is URL that users will enter to access the external gateway
- Organization: Your organization name
- Organizational Unit: Your department
- City/Locality: Your city
- State/province: Your state or province
- Country/region: Your country/region
- Click Next
- Choose appropriate Cryptographic Service Provider properties.
- Cryptographic service provider: Microsoft RSA SChannel Cryptographic Provider
- Bit length: 2048
- Click Next
- Specify a name for the CSR. Something along the lines of gocontosocomREQ.txt
- Specify a location to save the CSR such as c:\temp or something similar.
- Submit the CSR to your Certificate Authority (CA). Generally, this involves copying the CSR text into a form provided by the CA. The CA will verify that you own the domain for the external site name you are requesting and than after a waiting period will issue you your certificate. The waiting period varies depending on the CA but can take a few minutes at best and a few days or longer at worst.
- Once the CA has approved your CSR, you can download your certificate.
- Place certificate in a temporary location, such as the c:\temp folder used in step #11.
- Return to IIS Manager on the server that you initiated the CSR from.
- From the Server level, navigate back to Server Certificates.
- Select Complete Certificate Request
- Select your download certificate. Also choose a friendly name.
- Click OK
- Select Export on the right side.
- Specify a file name and export location (such as the c:\temp location used previously). Also specify an export password.
- Open a browser and proceed to your NetScaler management gui.
- I am using NS11.0 build 66.11 at the moment. For builds 10.5 and later the navigation should be pretty much the same. If you are on an earlier build reference the appropriate support documentation on http://docs.citrix.com/.
- Navigate to System>Traffic Management>SSL>Certificates.
- Click Install
- Enter the appropriate information in the fields to install the certificate.
- Certificate-Key Pair Name*: Certificate name.
- Certificate File Name*: Location of certificate.pfx file
- Key File Name: Location of certificate.pfx file
- Certificate Format: PEM
- Password: Password you specified in step #28
- Click Install
- Your certificate is now installed.
- Link your certificate with your CA intermediates by right-clicking on your certificate and selecting Link.
- Select the CA intermediate certificate and select OK. Note that I am assuming here that you had an SSL cert installed before and therefore have already installed your CA intermediate. If your hosting provider has not changed than the intermediate cert already installed can be used. Otherwise obtain your CA intermediate cert from your hosting provider and install it before proceeding with the previous step.
- Navigate to NetScaler Gateway>Virtual Servers. Select your external access VIP and select Edit
- Under Certificates, choose your Server Certificate.
- Unbind the old certificate by selecting it and clicking Unbind.
- Bind the new certificate by selecting Add Binding
- Select your new certificate and click Bind
- Return to the main configuration page and save your settings.
- Go to your StoreFront server and open the StoreFront console.
- Select the appropriate StoreFront Store for your environment
- On the right, select Manage NetScaler Gateway
- Select your NetScaler Gateway Appliance and select Edit
- In the General Settings tab update the Display Name and NetScaler Gateway URL.
- Click Apply
- Propagate your changes to your other StoreFront servers if applicable.
- Test your SSL installation on https://www.digicert.com/help/
- Correct any errors if the DigiCert SSL Diagnostics Tool finds any issues
- Test
Additional Notes:
- If the CSR was incorrectly submitted to the CA (for example you accidently put an extra character while copying/pasting), you may get a generic error 1110 when attempting to launch a resource from StoreFront. This is a general communication error that can appear for several different issues but I’m adding an additional possible cause for it here for future reference.
Resources: