SIA Target Validation Error Resolution

SIA Target Validation Error Resolution

236
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:54 PM


Objective


For Secure Infrastructure Access (SIA) from CyberArk, resolving target validation errors is crucial for maintaining secure and efficient operations. The document serves as a comprehensive guide designed to address these issues specifically within the context of Idira environments. It provides detailed instructions on installing root Certificate Authority (CA) certificates, creating and configuring certificate templates for Remote Desktop Protocol (RDP) authentication, and deploying these templates via Group Policy. By following the outlined steps, Idira Administrators and IT professionals can ensure that RDP connections are secure, automated, and free from validation errors, thereby enhancing the overall security posture of their Idira infrastructure.



Environment


14.4;14.6 Secure Infrastructure Access (formerly DPA) DPA for RDP

Procedure


Note: The topic discussed below is a feature of the Microsoft Active Directory solution and is NOT supported by CyberArk.  It is subject to change by Microsoft. More information can be found on this topic by contacting Microsoft or visiting their online support systems.

Target Validation Error Resolution

  • Install the root Certificate Authority certificate to the SIA portal under TLS certificates tab.

Create a certificate template with the following settings:

We must create a certificate template on the CA specifically for RDP authentication. This will allow computers to request certificates for this purpose.

  1. In the Certification Authority console, right-click on Certificate Templates and click Manage. In the Certificate Templates console, right-click on the Computer template and click Duplicate Template.

 

  1. On the General tab, give the template a name like “RDP Authentication” and change other properties like validity period if desired.

 

  1. On the Extensions tab, select Application Policies, click Edit. Remove the Client Authentication extension and click Add > New. Name the new extension “Remote Desktop Authentication” and give it an object identifier of “1.3.6.1.4.1.311.54.1.2”. This identifies it as an RDP auth certificate.

 

 

 

 

  1. On the Security tab, add the computers and groups you want to be able to enroll for this template. On the Cryptography tab, set a suitable key length like 4096 or higher.

  1. Click OK to create the template.

Security tab

  • Read and Enroll permissions for target servers.
  • Optionally, enable Autoenroll. Reasons and caveats:
    • Autoenroll enables servers to automatically request and renew certificates, without user intervention.
    • If Subject Name information is set to Supply in the Request, servers will not automatically request the certificate, as user input is required. However, subsequent renewals will be automated, assuming the rest of the template is configured to allow this. The server hostname could be added here.
    • When a certificate is renewed, Remote Desktop must be configured to use the new certificate. Group Policy can be used to automate this.

 

 

Issuance Requirements tab

  • If Subject Name information is set to Supply in the Request:
    • Enable CA certificate manager approval
      • This reduces the risk of this template being used to issue a certificate with malicious intent
    • Set "Require the following for reenrollment" to "Valid existing certificate"
      • This bypasses the need for CA manager approval for certificate renewal using the same subject information

Extensions tab

  • Edit Application Policies
  • Add Server Authentication and RDP Authentication, remove everything else

Cryptography tab:

  • Provider Category: Key Storage Provider
    • The Legacy Cryptographic Service Provider is only required on Server 2003. This template will only be used by the PSM servers, so there is no reason not to use the more modern Key Storage Provider
  • Algorithm name: RSA
  • Minimum key size: 2048 (please use 4096)
    • Other values for algorithm and key size work too. RSA 2048 bit is considered a good balance between performance and security right now, but 4096 works too. ECDH_P256 and ECDH_P384 work too, but RDS does not seem to like ECDH_P521. Any input is more than welcome on this point.
  • Choose which cryptographic providers can be used for requests: Requests must use one of the following cryptographic providers
    • Explicitly setting the allowed providers prevents someone from storing the private key using less secure methods.
  • Providers: Microsoft Software Key Storage Provider
  • Request hash: SHA256

Publish the Template to the CA

  • In order for computers to request the new template, we need to publish it to the CA.
  • In the Certification Authority console, right-click Certificate Templates and click New > Certificate Template to Issue. Select your new RDP template and click OK to publish it.

Configure group policies

  • Set the following group policy for Remote Desktop to use certificates based on the template created earlier:
    • Computer Configuration >Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security > Server authentication certificate template

    • Enter Certificate Template Name of the template defined earlier.
      • Note: This should be the Name, not the Display Name. The name is usually the same as the display name but without spaces.
  • Enable the following group policy settings to enable servers to enroll approved certificates and renew them automatically when they are due to expire.
    • Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies >Certificate Services Client - Auto-Enrollment
    • Check the box “Enroll new certificates, renew expired certificates, process pending certificate requests and remove revoked certificates”
    • Check the box “Update and manage certificates that use certificate templates from Active Directory”

Enroll certificates on the target servers

  • Open Manage Computer Certificates (certlm.msc)
  • Right-click on Personal and select All Tasks → Request New Certificate
  • Click Next
  • Select Active Directory Enrollment Policy and click Next
  • Select the certificate template created earlier
  • If additional information required
    • Subject tab 
      • Subject Name
        • Type: Common name
        • Value: Server host name
  • Click Enroll
  • If CA Manager approval required
    • On the Certification Authority
      • go to Pending Certificates and Issue the certificate
    • On the Connector server
      • Go to Manage Computer Certificates
      • Right-click on the top node - Certificates - Local Computer
      • Select All Tasks → Automatically Enroll and Retrieve Certificates...
        • Auto-enrollment must be enabled for this to work.

OPTIONAL: Create a GPO to Deploy the Template

We now need to configure a Group Policy Object that will be linked to the Active Directory Container where the hosts we want to be able to request the certificate template.

  1. Start by creating a new GPO or selecting an existing GPO, right-click, and choose Edit.


 

 

 

  1. Navigate to Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Security.

 

  1. Select the Server authentication certificate template policy.
    • Click on Enable, and under Certificate Template Name, enter the name of the certificate template created earlier.
      • For example, “RDP Authentication”.
    • Click OK to set the server auth certificate template.
    • This will deploy the selected template to computers the GPO is applied to.

Enable Server authentication certificate template policy

Configure RDP to Use SSL/TLS

  1. While still editing the GPO, go to Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.
  2. Double-click on the “Require use of specific security layer for remote (RDP) connections” policy. Enable it and select SSL from the drop-down menu.

Link GPO to OU

  1. Link the GPO to the OU containing your servers / desktops that need RDP certificates. They will auto enroll when Group Policy is updated.
  2. To force an immediate update, run “gpupdate /force” on a client computer. Or reboot it.

Force update the group policy on the server

A screenshot of a computerAI-generated content may be incorrect.

Verify Certificate Enrollment

  1. To confirm that certificates have been enrolled successfully, open the Certification Authority console, right-click on Issued Certificates, and click Find Certificates. Search for your RDP template name.
  2. You should see certificates issued to your computers. The templates column will show “RDP Authentication,” for example.

Verify SIA-RDP Connectivity

  1. Finally, test connecting to a server via RDP using a TLS connection. You should not receive any certificate errors if you enrolled successfully.
  2. Make sure TLS Target Validation is on in the SIA portal.


 

 

  1. Check that the connection is encrypting traffic under the General tab by clicking the Settings button in the RDP client. That’s it.

 

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000tuKCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail