SIA - DPA_RDP_VC_CONFIGURATION_ERROR to one specific target
Symptom
Customer is getting an error DPA_RDP_VC_CONFIGURATION_ERROR when initiating a session to a specific windows server via SIA, They're able to connect to the same server via PSM. Also, able to initiate a session to a different server using the same account via SIA. This was working previously
Environment
Secure Infrastructure Access (formerly DPA) DPA for RDP DPA for RDP Vaulted Access
Cause
FreeRDP logs showed:
ERRCONNECT_CONNECT_TRANSPORT_FAILED
SSL_NOT_ALLOWED_BY_SERVER
This is most likely due to the security layer configuration on target is set to a low layer(RDP)
SIA-RDP enforces SSL security layer on the connection. PSM allows the option of RDP security layer but also has an option to configure SSL on their connections.
Resolution
We have the GPO for security layer-
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security → "Require use of specific security layer for remote (RDP) connections"
Which is usually set to- "Not configured" which means it will be in windows taking "Negotiate" by default and should be working according to the connection configuration and in our case we come with SSL so will take SSL.
This GPO goes together with the registry value of-
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\SecurityLayer
So you will see that when gpo is not configured, the registry key of SecurityLayer doesn't exist, when GPO is configured to "RDP"(lowest security layer) registry value will be 0, when GPO is configured to Negotiate, the registry value will be set to 1, and when GPO is set to SSL the registry value will be set to 2.
"Require use of specific security layer for remote (RDP) connections" needs to be set to SSL
We also have another GPO at the same place-
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security → "Require user authentication for remote connections by using Network Level Authentication"
Which affects the security layer, and when it is not configured, or enabled, the security layer for the RDP connection will be CredSSP which is a type of SSL, high level of security regardless of what is defined in the "Require use of specific security layer for remote (RDP) connections" GPO, so usually if we see the security layer is set to RDP and we get the SSL_NOT_ALLOWED_BY_SERVER it means the NLA GPO is probably also disabled.