[x]

Site Alert(s):

  • Server maintenance Saturday Nov 22, 2008, 12:00 PM - 3:00 PM. The Knowledge Center will be unavailable during this time.
Rate this Article:
You must be signed in to rate again
Article Feedback Print View
Alternate Languages: N/A

Case Study: Citrix Access Gateway and Certificate Issues

Document ID: CTX109376   /   Created On: Apr 4, 2006   /   Updated On: Nov 21, 2007
Average Rating: 2

Problem Definition

When you purchase an Access Gateway it includes a digital certificate that is not signed by a trusted Certificate Authority. Operating the Access Gateway without a digital certificate signed by a Certificate Authority can subject VPN connections to malicious attacks.

It is recommended that you install a digital X.509 certificate that belongs to your company and is signed by a Certificate Authority on the Access Gateway. Your company can operate as its own Certificate Authority, or you can obtain a digital certificate from a commercial Certificate Authority such as Verisign and Thawte.

There are several issues that can occur when attempting to install a certificate on an Access Gateway. This document offers troubleshooting assistance to address these issues.

Environment

  • Access Gateway 4.1
  • Access Gateway 4.1.2
  • Access Gateway 4.2

Troubleshooting Methodology

By knowing the certificate requirements on the Access Gateway, troubleshooting the issue is easier.

The Access Gateway accepts a Privacy Enhanced Mail (PEM) format certificate file. PEM is a text format that is the Base-64 encoding of the Distinguished Encoding Rules (DER) binary format. The PEM format specifies the use of text BEGIN and END lines that indicate the type of content that is being encoded.

Before you can upload a certificate to the Access Gateway, you need to generate a Certificate Signing Request (CSR) and private key. The CSR can be generated using the Certificate Request Generator included in the Access Gateway Administration Tool. The Certificate Request Generator is a wizard that creates a .csr file. When the file is created, it is emailed to the Certificate Authority for signing. After it is signed, it is returned to you and you can be upload it to the Access Gateway.

Digital Certificates and Access Gateway Operation

The Access Gateway uses digital certificates to encrypt and authenticate traffic over a connection. If the digital certificate installed on the Access Gateway is not signed by a Certificate Authority, the traffic is encrypted but not authenticated. A digital certificate must be signed by a Certificate Authority to authenticate the traffic.

When traffic over a connection is not authenticated, the connection can be compromised through a “man in the middle” attack. In such an attack, a third party intercepts the public key sent by the Access Gateway to the Secure Access Client and uses it to impersonate the Access Gateway. As a result, the user unknowingly sends authentication credentials to the attacker, who could then connect to the Access Gateway. A certificate that is signed by a Certificate Authority prevents such attacks.

If the certificate installed on the Access Gateway is not signed by a Certificate Authority, Secure Access users see a security alert when attempting to log on.

Secure Access users see security warnings unless you install a certificate that is signed by a Certificate Authority on the Access Gateway and a corresponding certificate on users’ computers. Users can also disable the Security Alert through the Secure Access Connection Properties dialog box.

Some of the problems that may occur when dealing with Access Gateway and certificates are as follows:

  1. “Verification Failure” error during upload of certificate.
    This will happen if you try to upload a certificate without a private key. A common situation is where a company has multiple Access Gateways and uploading the same cert to each gateway.
    The resolution in this case is to generate a new CSR and have a new certificate issued with the private key.
  1. SSL errors occur when using a chained certificate and intermediate certificates are not uploaded to Access Gateway.
    If you are generating a trusted certificate with multiple levels, you need to upload all levels into one file for uploading, such as below:
    private key
    Server Certificate
    Intermediate Certificate 0
    Intermediate Certificate 1
    Intermediate Certificate 2
    More information can be found in the Access Gateway Administrator’s Guide.
  1. If you are purchasing a commercial Certificate Authority such as Verisign and Thawte, you need to request a certificate appropriate for Apache in Base 64 format.
  2. If you have multiple Access Gateways in a failover setup, each gateway requires a separate certificate. It won’t work if you copy the certificate from one gateway to another. You will need to generate separate CSRs, one for each gateway.

Resolution

Determine if you certificate meets the requirements, make sure you include the full chain. Follow the steps provided above in each example for a resolution.

Additional Information

CTX106028 – Convert PFX Certificate to PEM Format for Use with Citrix Access Gateway


Search
Knowledge Center
XenApp
XenApp Plugins (Clients)
XenServer
XenDesktop
NetScaler Application Delivery
Access Gateway
EdgeSight
Provisioning Server
WANScaler
Password Manager
Does it work with Citrix? Verify it - introducing the new Citrix Ready Community Verified