Step-by-Step Guide: SSL Certificate Renewal in Citrix ADC (NetScaler)

Overview
SSL certificates are crucial for securing communications between clients and servers by encrypting data and ensuring authenticity. SSL certificates have expiration dates, typically every 1 to 2 years, to maintain security standards and compliance.
Failing to renew an SSL certificate can lead to service disruptions, security warnings, and potential loss of trust from users.
Generate a New CSR (If Required)
Log in to Citrix ADC GUI.
Navigate to Traffic Management > SSL > SSL Files.
Click on Create RSA Key:
Key Filename:
mydomain.key
Key Size:
2048
(recommended)PEM Encoding:
Enable
Click Create.
Generate a CSR:
Go to SSL > SSL Files > Create CSR.
Select the RSA key file you just created.
Fill in the required details (Common Name, Organization, Country, etc.).
Click Create.
Download the CSR file and submit it to the CA.
Locate the Expiring Certificate
Login to Citrix ADC GUI.
Go to:
- Traffic Management > SSL > Server Certificates
Locate the expiring certificate.
Hover over the certificate, click the "3 dots" menu, and select "Show Bindings".
Record Certificate Bindings: Take a screenshot or note down all bound services
Can check validity of public certificates by renaming the certificate to .cer. Example: 25-26-PublicCert.pem to .cer
Upload Certificate to NetScaler
Navigate to:
- Traffic Management > SSL > Certificates > All Certificates
Click Install.
Enter the details
Certificate-Key Pair Name: [any suitable name]
Certificate File Name: [certificate either in crt, PEM etc]
Key File Name: [private key file used to generate the certificate.]
Certificate format: PEM
Citrix ADC primarily uses PEM format, which contains:
Certificate (
.crt
or.pem
)Private Key (
.key
)Intermediate CA Certificates (if applicable)
Bind the Certificate to Virtual Servers
Go to:
- Traffic Management > Citrix Gateway > Virtual Servers
Identify the virtual server using the expiring certificate.
Hover over it, click “3 dots”, select "Edit".
Click "1 Server Certificate" to open Certificate Bindings.
Unbind the old certificate:
- Hover over the old certificate, click "3 dots" → Select Unbind.
Bind the new certificate: Click Add Binding
Select the newly installed certificate.
Click OK > Save Changes
Update SSL Gateway Virtual Servers
Navigate to:
- Configuration > Citrix Gateway > Citrix Gateway Virtual Servers
Locate SSL Gateway using the old certificate.
Click Edit → Select Certificate Details.
Bind the new one
Validate and Verify Certificate Renewal
Run the following command: show ssl certKey [Certificate key-pair name]
Ensure the expiry date is correct.
Test SSL Connectivity
Open a web browser.
Navigate to the website, click the lock icon, and view certificate details.
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com
Sync to Secondary ADC [force sync]
show ha node
sync ha files
force ha sync
show ha node
Subscribe to my newsletter
Read articles from Ahmad Afif directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by