How to Enable SSL on Cloud Connectors to Secure XML Traffic

I will not explain how to do it, this is explained in the CTX221671.

But because I’m a bit lazy, I wrote a quick and dirty script to get the AppID of the Service (Citrix Broker Service GUID) and the Cert-Hash of the computer certificate of the Citrix Cloud Connector and set it via netsh.

This is version 0.1!
No error handling etc.

<#
    set-CTXCloudConnectorToSecureXMLTraffic.ps1

    v0.1 - Initial Version

    https://support.citrix.com/article/CTX221671
    
    netsh http add sslcert ipport=0.0.0.0:443
    certhash=PASTE_CERT_HASH_HERE_FROM_NOTEPAD
    appid={PASTE_XD_GUID_HERE_BETWEEN{}_FROM_NOTEPAD

    Browse to HKEY_LOCAL_MACHINE\Software\Citrix\DesktopServer\
    Right-click DesktopServer, select New > DWORD (32-bit) Value
    Name: XmlServicesEnableNonSsl
    Value Data: 0

#>

# Find Citrix Broker Service GUID on the Cloud Connector
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null
$keys = Get-Item "HKCR:\Installer\Products\*"

foreach($key in $keys){
    if((get-itemproperty $key[0].PsPath).Productname -eq 'Citrix Broker Service'){
        $CtxBrokerServiceValues = Get-ItemProperty $key.PSPath
    }
}

# Format the String of the Service GUID
# It is important to mention that the entry in the registry is presented without the dashes for the GUID. 
# Please make that the dashes are added in the following format: 8-4-4-4-12
$appID = '{' + ($CtxBrokerServiceValues.PSChildName) + '}'
$appID = $appID.Insert(9,'-')
$appID = $appID.Insert(14,'-')
$appID = $appID.Insert(19,'-')
$appID = $appID.Insert(24,'-')


# Get CC Computer Certificate Thumbprint
$certhash = (Get-ChildItem Cert:\LocalMachine\My\).Thumbprint

# Note: The “Citrix Broker Service GUID” being used to create the SSL binding may change with the Connector upgrades, however, no change is required to the SSL binding. 
# The binding would persist through these changes and SSL would continue to be enabled for the XML traffic.
netsh http add sslcert ipport=0.0.0.0:443 certhash=$certhash appid=$appID


# Allow only secure traffic
$registryPath = "HKLM:\Software\Citrix\DesktopServer"
$Name = "XmlServicesEnableNonSsl"
$value = "0"
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null

Citrix Technology Advocate

Ich bin stolz von Citrix zum Citrix Technology Advocate ernannt und ist einer der Mitglieder dieses weltweiten Zirkels von Experten zu sein.

Das CTA-Programm bietet den Teilnehmern die Möglichkeit, tiefere Einblicke in Citrix-Strategien und -Technologien zu erhalten sowie den Hersteller dabei zu unterstützen seine Expertenbasis zu vergrößern.  

Was das CTA Programm ist, wer alles daran teilnimmt seht ihr hier:
Citrix Technology Advocate (CTA) Program – Citrix Germany

MS Teams Probleme bei Anrufen/Meetings unter Citrix

Bei MS Teams 1.5.00.2164 scheinen sich Fehler eingeschlichen zu haben. Es treten Probleme bei P2P Calls (Peer2Peer) auf mit eingeschalteter Teams Optimization unter Citrix Virtual Apps & Desktops (CVAD).
Diese sind inzwischen auch im Citrix KB Artikel CTX253754 beschrieben.

Diese Fehler sind mit Teams Version 1.5.00.4689 behoben.
Bisher treten auch lokal keine HDXEngine.exe Abstürze mehr auf.
(Getestet mit Citrix WorkspaceApp 2202 for Windows und VDA1912CU4)

UPDATE 08. März 2022
Microsoft hat den Fix inzwischen komplett ausgerollt. Es ist kein Update einer Citrix Komponente dazu notwendig.

3/8/2022: Fix for P2P call failure is now completely rolled out by Microsoft. No Teams client/Workspace app/VDA upgrade required (the fix was applied to the Teams backend services)

Troubleshooting HDX Optimization for Microsoft Teams (citrix.com)

UPDATE 04. März 2022
Es ist inzwischen klar, dass es sich um ein Microsoft Teams Backend Problem handelt und nicht „nur“ ein Teams Client / Citrix Problem ist.

3/4/2022: The P2P call failure issue between native Teams desktop clients (1.5.00.2164 or higher) and an HDX optimized user (or even a non Citrix user using web Teams) has been root caused by Microsoft and identified in the Teams backend services. A targeted fix to repair this is being developed. It will not require a CWA or VDA update.

Troubleshooting HDX Optimization for Microsoft Teams (citrix.com)

Danke auch an Marco Klose für sein Feedback!
Quick Post: Microsoft Teams P2P Calls disconnecting after some seconds in Citrix HDX Session – Marco Klose