This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
WebSocket communication between VDA and Delivery Controller™
本文介绍了如何为 VDA 与 Delivery Controller 之间的通信设置 WebSocket 连接,作为使用 WCF 通信的替代方案。这样做的好处是,VDA 到 Delivery Controller 的通信只需使用 TLS 端口 443。
工作原理
The following sections describes the workflow for the WebSocket connection between a Delivery Controller and a VDA:
在正常代理操作期间
- Citrix 虚拟应用和桌面™ 管理员通过使用机器创建服务 (MCS) 预配 VDA 来启动此过程。
- 在 MCS 预配过程中,MCS 为每个 VDA 生成公钥-私钥对,并将公钥注册到 Delivery Controller 上的 FMA 信任服务。MCS 将公钥-私钥对作为文件保存在 VDA 上的身份磁盘下。
- 当 VDA 计算机启动时,安装在 VDA 计算机上的 MCS 代理从身份磁盘读取密钥对,并将此信息写入 VDA 注册表位置。
- 安装在 VDA 上的代理代理从注册表读取密钥对,并向 Delivery Controller 生成一个启用 SSL 的 WebSocket 请求,其中服务密钥由私钥签名。
- Delivery Controller 使用 FMA 信任服务中的公钥验证已签名的服务密钥授权标头。
- 验证完成后,系统将在 VDA 和交付控制器之间建立 WebSocket 连接。
当 LHC 模式变为活动状态时
如果您为 LHC 启用 WebSocket 支持,则在 LHC 模式下,当 VDA 尝试与高可用性服务建立 WebSocket 连接时,高可用性服务会使用本地数据库中的公钥验证已签名的服务密钥授权标头。这会验证 WebSocket 连接,并且 VDA 与 Delivery Controller 之间的 WebSocket 连接即使在 LHC 模式下也能成功建立。
Web 套接字支持
开始之前
- 配置您的站点。有关详细信息,请参阅 创建站点。
- 在 Delivery Controller 上安装 TLS 证书。有关详细信息,请参阅 在控制器上安装 TLS 服务器证书。
- 在 VDA 上安装根 CA 和中间 CA 以信任交付控制器。
操作步骤
按照说明设置 WebSocket 连接:
-
在交付控制器上启用 WebSocket 连接。在您站点上的每个交付控制器上运行以下命令:
New-ItemProperty "HKLM:\SOFTWARE\Citrix\DesktopServer\WorkerProxy" -Name "WebSocket_Enabled" -PropertyType "DWord" -Value 1 -Force - 启用 WebSocket 后,重新启动代理服务。
-
为 LHC 模式启用 WebSocket 支持。在站点上的每个 Delivery Controller 上运行以下命令:
New-ItemProperty "HKLM:\SOFTWARE\Citrix\DesktopServer\LHC" -Name "WebSocketEnabledLhc" -PropertyType "DWord" -Value 1 -Force <!--NeedCopy--> - 为使用 MCS 预配的已加入 AD 的 VDA 创建计算机目录。有关详细信息,请参阅 创建计算机目录。
- 创建交付组并将您的 VDA 添加到其中。有关详细信息,请参阅 创建交付组。
-
在 VDA 上启用 Web 套接字连接。在 VDA 上运行以下 PowerShell 命令:
New-ItemProperty "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CitrixBrokerAgent\WebSocket" -Name "Enabled" -PropertyType "DWord" -Value 1 -Force <!--NeedCopy-->-
要检查 WebSocket 是否已启用,请检查以下注册表项值。
Enabled的值必须为 1。键:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CitrixBrokerAgent\WebSocket <!--NeedCopy-->名称:已启用
类型:注册表双字
值: 1
-
共享
共享
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.