How to import a Connection Component to the PVWA

How to import a Connection Component to the PVWA

99
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:56 PM


Objective


This was originally a Community user generated knowledge article authored by Antonio Bambino at ion group. This article was originally posted on Antonio blog here he posts similar articles to help other Idira peers.  

 

Connection Components are an essential part of the Idira PAM infrastructure as they allow you to interface with the targets for which they were designed (e.g. servers, databases, network devices, web interfaces, etc.).

By default the most used Connection Components are natively included and supported. Other Connection Components are written and released by Idira through the Marketplace and others are written by Partners using AutoIT.

 

This article describes some solutions to use to import a new Connection Component:

  • Script PowerShell
  • Postman
  • Manual Import

 

Note: Zip files downloaded from the Marketplace may also contain the files needed to import the Platform.

 

Note: All examples below refer to the C:\Import-CyberArk-CC Directory and the Connection Component CyberArk.PSM.OracleSqlDeveloper-v14.2.0.184.zip



Environment


11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1;14.0;13.3;14.2;14.3 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access;Privileged Session Management (PSM)

Procedure


Script PowerShell

Navigate to the Marketplace Import PSM Connection Component PowerShell Script and download the Import-ConnectionComponents.ps1 file to the directory containing the Connection Component zip file.

  1. Open a PowerShell command-line shell and navigate to the directory containing the script and the Connection Component .zip file.
  2. Run the script with parameters ( Import-ConnectionComponents.ps1 -PVWAURL <string> -ConnectionComponentZipPath <string> ) or interactively.
  3. Review the new Connection Component within the PVWA
 

 

Note: If after entering your credentials you get the error "Logon Token is Empty - Cannot login" add the following lines to handle TLS to your script:

# Set TLS Version

# ---------------

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

 

 

Postman

Note: Before you can use Postman you may need to import the REST API from Public Repository:   https://documenter.getpostman.com/view/998920/RzZ9Gz1U?bs=true

1.Before you import the Connection Component, you need to convert the zip file to Base64String as follows.

Open a PowerShell command-line shell and navigate to the directory containing the Connection Component .zip file and run the below Cmdlet:

 [Convert]::ToBase64String([System.IO.File]::ReadAllBytes($(Resolve-Path "ConnectionComponentfile.zip"))) > zipBase64.txt

[Convert]::ToBase64String([System.IO.File]::ReadAllBytes($(Resolve-Path "CyberArk.PSM.OracleSqlDeveloper-v14.2.0.184.zip"))) > ZiptoBase64.txt

 

2. Open the txt file and verify the content (will be really long...)

 

3. Run Postman and connect to PVWA with Admin user

 

4. Select the “Import Connection Component” REST, and in the Body tab paste the contents of the Base64 file between the double quotes of the “ImportFile” field. Send the REST and verify the status.

 

5. Select Logoff REST to close the connection

 

Manual Import

The last option is to import the Connection Component manually. Of course, this last solution should be used if for some reason it is not possible to use the first two options.

 

1.Duplicate an existing Connection Component (for example PSM-VNCClientSample). Based on the previous examples, rename the pasted Connection Component with the Id PSM-SQLDeveloper

 

2. Edit all fields based on the data in the .xml file contained within the .zip file. Add/remove fields and sections based on specific needs.

 

3. Below is the Connection Component imported in the previous examples visible from the PVWA

 



Actions
  • Print
  • Copy Link

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