Citrix Access Gateway: duplicate STA ID
I received complains from a customers who wasn’t able to add two new Citrix servers to his Citrix Access Gateway configuration. He could successfully add the first Citrix server, but he couldn’t add the second Citrix server, because the first was overwritten by the second. I looked at the problem and noticed that both Citrix server were using the same STA Identifier.
After asking some question about the installation of the Citrix server, I discovered that the second Citrix server was a clone of the fist Citrix server. That is why both servers have the same STA Identifier. The STA ID from a Citrix server can be changed by altering the file CtxSta.config. By default a Citrix server has two CtxSta.config files, located at the following destinations (default installation):
- C:\Program Files\Citrix\System32;
- C:\Inetpub\Scripts;
I had to change the STA ID in the C:\Inetpub\Scripts directory, because IIS was used to share port 80 on the server. The CtxSta.config file contains a UID, like the example below:
[GlobalConfig]
UID=STAA3D2D2970C9C
TicketVersion=10
TicketTimeout=100000
MaxTickets=100000
LogLevel=0
MaxLogCount=10
MaxLogSize=20
LogDir=c:\inetpub\Scripts\
; Allowed Client IP addresses
; To change, substitute * with client IP addresses. Use ";" to seperate IP addresses/address ranges.
; To specify a range of IPs always use StartIP-EndIP.
; For example, AllowedClientIPList=192.168.1.1;10.8.1.12-10.8.1.18;123.1.2.3AllowedClientIPList=*
; SSL only mode
; If set to on, only requests sent through HTTPS are accepted
SSLOnly=off
I changed the UID on the second server and restarted IIS. I tried to add the Citrix server to the Citrix Access Gateway, which is now possible with the new unique STA ID. The last step is adding the second Citrix server to the Citrix WebInterface (server farm & STA ID).
René Jorissen
Latest posts by René Jorissen (see all)
- MacOS Big Sur and SSLKEYFILELOG - November 23, 2021
- ClearPass, Azure AD, SSO and Object ID - August 12, 2021
- ClearPass – custom MPSK - July 20, 2021
Thanks for this post!
Can you just enter a random-ID? no need to let it be generatet by any tool or something like that?
Hey Allessandro,
I just changes a (few) number at random and it did the trick. There is no need to use to kind of tool or executable to generate the STA ID.
Hi René
Thank you for your quick answer! I’ll try that!