Instructions for deploying the Venafi Connector within the Keyfactor AgileSec Platform to scan for cryptographic assets and deliver findings to the AgileSec Platform for processing and analysis.
Overview
The Venafi Connector integrates Venafi TLS Protect with Keyfactor's AgileSec Platform. This Connector retrieves X.509 certificates from the Venafi certificate inventory and transmits them to the AgileSec ecosystem for cryptographic visibility, risk assessment, and policy compliance.
What Gets Scanned
The Venafi Connector can discover the following cryptographic asset types from the Venafi TLS Protect inventory:
-
X.509 Certificates: Certificates managed within the configured Venafi policy folder.
-
Certificate Locations: Extracts Venafi certificate DN and policy folder path for finding’s source location.
Prerequisites
Ensure you meet the following requirements to enable scanning.
Network Access
-
Ensure HTTPS network connectivity from AgileSec platform or remote execution machine to Venafi TLS Protect instance.
Note for Remote Execution Scans:
For Remote Scan execution, the remote host needs network connectivity to AgileSec’s OpenSearch component. The OpenSearch address, username, and password must be provided in the configuration file.
The Venafi Connector performs certificate de-duplication. The Venafi Connector queries AgileSec’s OpenSearch component for existing certificate thumbprints and avoids re-ingesting previously discovered certificates. For Platform and API Scans, network connectivity and authentication is performed automatically.
For On-Prem Linux installations, OpenSearch information can be found on frontend nodes in the INSTALL_SUMMARY.txt.
Supported Authentication Methods
The Venafi Connector uses token-based authentication:
-
API Token (Bearer): Authenticate using a Venafi API token generated from the Venafi TLS Protect platform.
Required Access Rights
The Venafi API token must have the following permissions:
|
Permission |
Purpose |
|---|---|
|
|
Required to list and retrieve certificates via WebSDK. |
Remote Execution Requirements
If running the Connector remotely using CLI, the remote execution machine must meet these requirements:
|
Component |
Requirement |
|---|---|
|
Operating System |
|
|
RAM |
Minimum 500 mb (0.5 GB) to enable API calls and data streaming. |
|
Disk Space |
Minimal; scans are API-driven and findings are streamed to the AgileSec platform. No data is stored on disk. |
|
Permissions |
Read/write access to remote sensor working directory (remote sensor install location) |
Running the Connector
AgileSec Venafi scans can be executed using the following methods:
-
Platform Scan Execution: Configure and execute scans directly through the Keyfactor AgileSec web UI with on-demand or scheduled execution options.
-
API Scan Execution: Programmatically trigger scans through REST API calls, enabling integration with CI/CD pipelines and automation workflows.
-
Remote Scan Execution: Deploy and run the connector via CLI on customer-managed infrastructure for scenarios such as:
-
Scanning air-gapped or internal instances the platform cannot directly reach
-
Customers wanting to manage their own scheduling and execution environment.
-
Refer to Scan Execution Flows for additional scan execution information.
Connectors/Sensors Note: Connectors are considered a subset of Sensors. Sensors and Connectors utilize the same Unified Sensor Framework, but Sensors use the Host Sensor for additional scanning depth.
“Sensor”-labeled variables for API and Remote execution are common to both Sensors and Connectors. Unless specified, do NOT update these with “Connector”.
Configuration Fields
The following parameters are used to configure AgileSec Venafi scans.
|
Field Name |
UI Display Name |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
Venafi URL |
String |
✅ Yes |
Base URL of your Venafi TLS Protect instance (e.g., |
|
|
Policy Folder |
String |
✅ Yes |
Venafi policy folder path to scope certificate retrieval (e.g., Nested subfolders will be searched recursively. |
|
|
API Token |
String |
✅ Yes |
Venafi API token with |
Remote Execution Configuration
In addition to the above, the following parameters are available for remote execution only.
|
Field Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
OpenSearch object with |
✅ Yes (Only for Remote Scan Executions.)
|
Authenticates connection to OpenSearch. For Platform and API scans, this is configured automatically. |
Note: For On-Prem Linux installations, OpenSearch information can be found on frontend nodes in INSTALL_SUMMARY.txt.
Platform Scan Execution
Running scans through the user interface is the simplest and fastest way to get started. The platform enables running on-demand or scheduled scans in a dedicated environment.
Platform Scan Configuration
-
Open your browser and navigate to the Keyfactor AgileSec Platform Web URL
-
Log in with your credentials
-
Click on "Sensors" in the left navigation menu under Scan
-
Click "+ New Sensor".
-
Click on the correct card to open the configuration interface.
Configure Parameters and Start Scan
-
Fill in the required configuration parameters.
-
Click Save.
-
Click Action then Scan to begin a scan.
Note: Click Edit to reconfigure parameters.
API Scan Execution
Scans may be programmatically triggered through REST API calls, enabling seamless integration with CI/CD pipelines, automation workflows, and custom applications. API execution provides flexibility for developers to incorporate cryptographic scanning into their existing development and deployment processes.
Note: For complete API reference, see API.
Generate AgileSec API Access Token
-
Open your browser and navigate to AgileSec Platform UI
-
Log in with your Keyfactor credentials
-
Click "Access Tokens" in the main navigation menu
-
Click "Generate Token" button
-
Set Token Type to API Token and provide the required details
-
Click "Generate" and copy the generated token
AgileSec API Endpoint
POST https://<platform-url>/v3/scan/create/
Request Format
Headers
Content-Type: application/json
isg-api-token: <your-api-token>
Request Body
{
"sensorName": "<sensor name>",
"sensorType": "Venafi TLS Protect",
"sensorConfig": {
"url": "<venafi base url>",
"policy": "\\VED\\Policy\\Your\\Folder",
"token": "<venafi api token>"
},
"callbackId": "<callback id>",
"labels": [
{
"<label name>": "<label value>"
}
],
"priority": "<priority>"
}
Remote Scan Execution
Scans may be run on remote host machines with the AgileSec Remote Sensor Package.
Download Remote Sensor Package
Generate Platform Token
-
In the Download Remote UI, click "Generate Token"
-
Copy the generated token
-
Store securely in an environment variable such as
SENSOR_TOKEN:export SENSOR_TOKEN="your-generated-token"
Create Configuration File
Create a YAML configuration file (e.g., venafi-config.yml) with your scan settings. An example configuration can be found in config/sample-configs/venafi.yml.
Step 4: Run the Connector
Execute the Connector with your configuration file:
-
Linux/macOS
Bash# Set environment variables export SENSOR_TOKEN="your-sensor-token" # Run Connector ./unified_sensor_linux -c venafi-config.yml -
Windows (PowerShell)
PowerShell# Set environment variables $env:SENSOR_TOKEN = "your-sensor-token" # Run Connector .\\unified_sensor_windows.exe -c .\\venafi-config.yml
Remote Scan Execution Configuration Examples
The remote Connector contains an example configuration file in the directory config/sample-configs/venafi.yml.
-
Basic Configuration
YAMLscan_config: plugins: - venafi - export config: venafi: name: venafi plugin_config: url: "<https://venafi.company.com>" policy: "\\\\VED\\\\Policy\\\\Your\\\\Folder" token: "${env:VENAFI_TOKEN}" opensearch: address: "<https://127.0.0.1:9200>" username: "${env:OS_USER}" password: "${env:OS_PASS}"
Known Limitations
Venafi TLS Protect Only
This Connector integrates with Venafi TLS Protect via the WebSDK API (/vedsdk/certificates/).
OpenSearch Connectivity
Requires connectivity to OpenSearch for de-duplication of certificate thumbprints. If OpenSearch is unreachable, the Connector will fail to start.
Troubleshooting Common Errors
-
Unable to read/parse configuration file-
Cause: The configuration file path is incorrect or the file is malformed.
-
Fix: Verify the config file path and validate JSON syntax.
-
-
status != 200 when retrieving the data, check token-
Cause: Invalid or expired Venafi API token, or incorrect base URL.
-
Fix: Verify the token has
certificate:managescope and has not expired. Regenerate the token from Venafi TLS Protect if needed.
-
-
No data returned from Venafi-
Cause: The specified policy folder contains no certificates, or the policy path is incorrect.
-
Fix: Verify the policy folder path exists in Venafi and contains certificates.
-
-
Certificate contains no X509 information, skipping...-
Cause: A certificate in Venafi has no X509 data or serial number (error state in Venafi).
-
Fix: This is informational. The Connector skips these certificates automatically.
-
-
failed to connect to OpenSearch-
Cause: Network connectivity issue or invalid OpenSearch credentials.
-
Fix: Verify the OpenSearch address, username, and password. Ensure network connectivity from the Connector machine to OpenSearch.
-
Getting Support
Collect diagnostic information:
-
Connector version
-
Configuration file (redact tokens and credentials)
-
Log output
-
Venafi TLS Protect details (URL, version)
Contact Support
-
Portal: https://support.keyfactor.com