Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The code in the question is basically right, but I was trying too hard to inject configuration into the launching ICA generator. </p> <p>Note: Using the <strong>WebInterface.conf</strong> file for guidance is a good way to determine the right config settings. Even if the code is right, the configuration is very touchy!</p> <p>Most of the Citrix Secure Gateway (CSG) / Secure Ticket Authority (STA) magic happens when the policy for the initial connection to the farm is established. Specifically, in <em>Global.asax.cs</em>, you must have the following blocks of code:</p> <p>1) you must have a valid STAGroup:</p> <pre><code>//Set the Secure Ticketing Authorities (STAs). STAGroup STAgr = new STAGroup(); STAgr.addSTAURL(@"http://[STA URL]/scripts/ctxsta.dll"); </code></pre> <p>2) the you must create a CSG connection (with the STA mapped):</p> <pre><code> //create Secure Gateway conenction SGConnectionRoute SGRoute = new SGConnectionRoute(@"[CSG FQDN without HTTPS]"); SGRoute.setUseSessionReliability(false); SGRoute.setGatewayPort(443); SGRoute.setTicketAuthorities(STAgr); </code></pre> <p>3) you need to set the policy default</p> <pre><code> // Create a DMZ routing policy ConnectionRoutingPolicy policy = config.getDMZRoutingPolicy(); policy.getRules().clear(); policy.setDefault(SGRoute); </code></pre> <p>4) you need to tell the launchInfo that you want to be CGP enabled:</p> <pre><code>launchInfo.setCGPEnabled(true); </code></pre> <p>WARNING: The SSL enabled as a red herring.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload