HTTP error with the Powershell SDK – Quickpost

This week we were having issues while connecting to Citrix Cloud using the Powershell SDK (more info) for Citrix Virtual Apps and Desktops services; we received the following error:

An error occurred while making the HTTP request to https://<customerID>.xendesktop.net/Citrix/SdkRouter/V2. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

Powershell SDK
Powershell SDK error

After some intensive troubleshooting, we discovered that it’s a .net Framework security issue. It took us 4 hours to discover this. πŸ™

To solve this issue you need to modify the following registry keys:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

Where you can change V4.0.30319 to a higher or lower number as it’s compatible with newer releases. That means that if you are using .net V4.8 and change the key in version 4.0 it works and you can use the Powershell SDK to manage your Citrix Cloud environment.

Hope I save you a lot of troubleshooting when you have this issue with Powershell SDK.

Leave a Reply

Your email address will not be published.