VenafiTLSProtect
Retrieves information about certificates stored in Venafi.
IT Services · CyberArk Certificate Manager Self-Hosted
Details
| ID | VenafiTLSProtect |
|---|---|
| Provider | CyberArk |
| Category | IT Services |
| From Version | 6.9.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Supported Modules | Agentix XSIAM |
README
Retrieves information about certificates stored in Venafi.
Configure CyberArk Certificate Manager on Cortex XSOAR
- Navigate to Settings > Integrations > Servers & Services.
- Search for CyberArk Certificate Manager.
-
Click Add instance to create and configure a new integration instance.
Parameter Required Server URL (e.g., https://192.168.0.1) True User Name True Password True Client ID True Trust any certificate (not secure) False Use system proxy settings False - Click Test to validate the URLs, token, and connection.
Commands
You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
venafi-get-certificates
Gets Venafi certificates query. All dates are in 2016-11-12T00:00:00.0000000Z format. For additional field information, see: https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-attribute.htm and https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-status.htm
Base Command
venafi-get-certificates
Input
| Argument Name | Description | Required |
|---|---|---|
| CreatedOn | The date on which the certificated was created. Specify YYYY-MM-DD or the ISO 8601 format. | Optional |
| CreatedOnGreater | Find certificates created after this date. Specify YYYY-MM-DD or the ISO 8601 format. | Optional |
| CreatedOnLess | Find certificates created before this date. Specify YYYY-MM-DD or the ISO 8601 format. | Optional |
| Disabled | Include only certificates that are enabled 0 or disabled 1. | Optional |
| InError | Whether to include only certificates that are in an error state (1) or not in an error state (0). | Optional |
| ValidationState | Validation state. Possible values are: Blank, Success, Failure. | Optional |
| ManagementType | Management type. Possible values are: Unassigned, Monitoring, Enrollment, Provisioning. | Optional |
| Name | Name of the certificate object. | Optional |
| NetworkValidationDisabled | Whether to include only certificates with network validation disabled (1) or enabled (0). | Optional |
| ParentDn | The full path to the parent of the object in Trust Protection Platform (e.g., \VED\Policy\Engineering,\VED\Policy\HR). | Optional |
| ParentDnRecursive | The specific folder from which to retrieve certificates. (The subfolders will also be scanned.) Accepts a single value. | Optional |
| PendingWorkflow | Whether to include only certificates that are pending workflow resolution (have an outstanding workflow ticket). | Optional |
| Stage | Comma-separated list of stages in the certificate lifecycle. Will retrieve certificates at one or more of the stages. | Optional |
| StageGreater | Find certificates with a stage greater than the specified stage (does not include specified stage). | Optional |
| StageLess | Stage before which to retrieve certificates. | Optional |
| ValidationDisabled | Whether to include only certificates with validation disabled (1) or enabled (0). | Optional |
| C | Find certificates by Country attribute of Subject DN. | Optional |
| CN | Find certificates by Common name attribute of Subject DN. | Optional |
| Issuer | Find certificates by issuer. Use the CN ,O, L, S, and C values from the certificate request. Surround the complete value within double quotes (“). If a value already has double quotes, escape them with a second set of double quotes. For example, OU=”“(c) 2020 Entrust, Inc. - for authorized use only””. | Optional |
| KeyAlgorithm | Algorithm for the public key in the certificate (e.g., RSA, DSA). | Optional |
| KeySize | Comma-separated list of the bit size of the public key in the certificate (e.g., 2048). | Optional |
| KeySizeGreater | The size for which the public key size is greater than. | Optional |
| KeySizeLess | The size for which the public key size is less than. | Optional |
| L | Find certificates by Locality/City attribute of Subject Distinguished Name (SDN). | Optional |
| O | Find certificates by Organization attribute of Subject DN. | Optional |
| S | Find certificates by State/Province attribute of Subject DN. | Optional |
| Serial | Serial number of the certificate. | Optional |
| SignatureAlgorithm | The algorithm used to sign the certificate (e.g., SHA1RSA). | Optional |
| ValidFrom | Date on which the certificate was issued (e.g., 2015- 10-08T19:15:35.6431456Z or 2015-10-08). | Optional |
| ValidTo | Date on which the certificate expires (e.g., 2015-10- 08T19:15:35.6431456Z or 2015-10-08). | Optional |
| ValidToGreater | Date after which the certificates expire. | Optional |
| ValidToLess | Date before which the certificates expire. | Optional |
| Limit | The maximum number of certificates to return. Default value = 50. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| Venafi.Certificate.CreatedOn | date | The exact date and time when the certificate object was created. |
| Venafi.Certificate.DN | string | The DN of the certificate. |
| Venafi.Certificate.Name | string | The name of the certificate. |
| Venafi.Certificate.ParentDN | string | The full path to the parent of the object in Trust Protection Platform. |
| Venafi.Certificate.SchemaClass | string | The class name of the certificate object. |
| Venafi.Certificate.ID | string | The certificate object GUID. |
| Venafi.Certificate.X509 | dictionary | Enrolled or issued certificate information: CN, Issuer, KeyAlgorithm, KeySize, SANS, Serial, Subject, Thumbprint, ValidFrom, ValidTo. |
venafi-get-certificate-details
Uses a certificate GUID to extract more details from the certificate store.
Base Command
venafi-get-certificate-details
Input
| Argument Name | Description | Required |
|---|---|---|
| guid | The ID of the certificate. Get certificates ID by running the command “venafi-get-certificates”. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| Venafi.Certificate.ID | string | The certificate object GUID. |
| Venafi.Certificate.ParentDN | string | The full path to the parent of the object in Trust Protection Platform. |
| Venafi.Certificate.CreatedOn | date | The exact date and time when the Certificate object was created. |
| Venafi.Certificate.DN | string | The DN of the certificate. |
| Venafi.Certificate.Name | string | The name of the certificate. |
| Venafi.Certificate.SchemaClass | string | The class name of the certificate object. |
| Venafi.Certificate.Approver | string | An array of one or more users or groups who are certificate approvers. |
| Venafi.Certificate.CertificateAuthorityDN | string | The CA template that is required for certificate renewal. |
| Venafi.Certificate.Contact | string | An array of one or more users or groups who receive event notifications. The events notify people about certificate expiration and validation failures. |
| Venafi.Certificate.Description | string | Certificate description. |
| Venafi.Certificate.ManagedBy | string | Certificate manager. |
| Venafi.Certificate.ManagementType | string | The level of management that the Trust Protection Platform applies to the certificate. |
| Venafi.Certificate.CertificateDetails.AIAKeyIdentifier | string | Authority key identifier. |
| Venafi.Certificate.CertificateDetails.Issuer | string | The CN, O, L, S, and C values from the certificate request. |
| Venafi.Certificate.CertificateDetails.Serial | string | The unique serial number that the CA assigned to the certificate. |
| Venafi.Certificate.CertificateDetails.Subject | string | The CN, O, L, S, and C values from the certificate request. |
| Venafi.Certificate.CertificateDetails.Thumbprint | string | The SHA1 thumbprint hash of the certificate. |
| Venafi.Certificate.CertificateDetails.ValidFrom | string | Certificate validation start date. |
| Venafi.Certificate.CertificateDetails.ValidTo | string | Certificate validation end time. |
| Venafi.Certificate.CertificateDetails.AIACAIssuerURL | array | Available only when the certificate was issued by a well-configured CA. An array of Authority Information Access (AIA). Shows the CA issuer link and the CA’s certificate details. May also include Online Certificate Status Protocol (OCSP) information about revocation. |
| Venafi.Certificate.CertificateDetails.CN | string | The Common Name attribute of Subject Distinguished Name (DN). |
| Venafi.Certificate.CertificateDetails.EnhancedKeyUsage | string | The PKI Server Authentication object identifier (OID). |
| Venafi.Certificate.CertificateDetails.KeyAlgorithm | string | The algorithm for the public key. |
| Venafi.Certificate.CertificateDetails.KeySize | string | Only available for RSA certificates. The bit size of the public key. |
| Venafi.Certificate.CertificateDetails.KeyUsage | string | A list of Key Usage extension values that describe the purpose of the public key. |
| Venafi.Certificate.CertificateDetails.OU | string | An array of Organization Units or names. |
| Venafi.Certificate.CertificateDetails.PublicKeyHash | string | The public key hash string. Available only when the certificate has a private key. |
| Venafi.Certificate.CertificateDetails.SKIKeyIdentifier | string | The generated Subject Key Identifier (SKI). |
| Venafi.Certificate.CertificateDetails.SignatureAlgorithm | string | The signature algorithm for signing the certificate. |
| Venafi.Certificate.CertificateDetails.SignatureAlgorithmOID | string | The Signature Object ID for signing the certificate. |
| Venafi.Certificate.CertificateDetails.StoreAdded | string | The Date Time stamp when the private key was added to the store. |
| Venafi.Certificate.CertificateDetails.SubjectAltNameDNS | string | An array of Domain Name System (DNS) SANs. |
| Venafi.Certificate.CertificateDetails.SubjectAltNameEmail | string | An array of Email SANs. Based on RFC 822. |
| Venafi.Certificate.CertificateDetails.SubjectAltNameOtherNameUPN | string | An array of User Principal Name (UPN) SANs. |
| Venafi.Certificate.CertificateDetails.SubjectAltNameIPAddress | string | An array of IP address SANs. |
| Venafi.Certificate.CertificateDetails.SubjectAltNameURI | string | An array of Uniform Resource Indicator (URI) SANs. |
| Venafi.Certificate.CreatedBy | string | The object that initiated enrollment or provisioning changes. The default is Web SDK. |
| Venafi.Certificate.Origin | string | Filter by origin. |
| Venafi.Certificate.ProcessingDetails | dictionary | Absent when the certificate is not currently processing in the Trust Protection Platform lifecycle: InError, InProcess, Stage, Status, TicketDN. |
| Venafi.Certificate.RenewalDetails | dictionary | A list of certificate renewal information. |
| Venafi.Certificate.ValidationDetails | dictionary | A list of host identity information and the overall certificate validation state result. If no validation occurred, only the lastvalidationstateupdate field appears. All other validationdetails fields are absent. |
Configuration parameters
server— Server URL (e.g., https://192.168.0.1) (required)credentials— User Name (required)client_id— Client ID (required)insecure— Trust any certificate (not secure)proxy— Use system proxy settings
Commands (2)
-
venafi-get-certificate-detailsUses a certificate GUID to extract more details from the certificate store.
-
venafi-get-certificatesGets Venafi certificates query. All dates are in 2016-11-12T00:00:00.0000000Z format. For additional field information, see: https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-attribute.htm and https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-status.htm
category: IT Services provider: CyberArk commonfields: id: VenafiTLSProtect version: -1 sectionorder: - Connect - Collect configuration: - defaultvalue: "https://ao-tlspd.dev.ven-eco.com" display: Server URL (e.g., https://192.168.0.1) name: server required: true type: 0 section: Connect - displaypassword: Password name: credentials required: true type: 9 display: User Name section: Connect - display: Client ID name: client_id required: true type: 0 section: Connect - display: Trust any certificate (not secure) name: insecure type: 8 required: false section: Connect - display: Use system proxy settings name: proxy type: 8 required: false section: Connect description: Retrieves information about certificates stored in Venafi. display: CyberArk Certificate Manager name: VenafiTLSProtect script: commands: - arguments: - description: The date on which the certificated was created. Specify YYYY-MM-DD or the ISO 8601 format. name: CreatedOn required: false - description: Find certificates created after this date. Specify YYYY-MM-DD or the ISO 8601 format. name: CreatedOnGreater required: false - description: Find certificates created before this date. Specify YYYY-MM-DD or the ISO 8601 format. name: CreatedOnLess required: false - description: Include only certificates that are enabled 0 or disabled 1. name: Disabled required: false - description: Whether to include only certificates that are in an error state (1) or not in an error state (0). name: InError required: false - auto: PREDEFINED description: Validation state. name: ValidationState predefined: - Blank - Success - Failure required: false - auto: PREDEFINED description: Management type. name: ManagementType predefined: - Unassigned - Monitoring - Enrollment - Provisioning required: false - description: Name of the certificate object. name: Name required: false - description: Whether to include only certificates with network validation disabled (1) or enabled (0). name: NetworkValidationDisabled required: false - description: The full path to the parent of the object in Trust Protection Platform (e.g., \VED\Policy\Engineering,\VED\Policy\HR). name: ParentDn required: false - description: The specific folder from which to retrieve certificates. (The subfolders will also be scanned.) Accepts a single value. name: ParentDnRecursive required: false - description: Whether to include only certificates that are pending workflow resolution (have an outstanding workflow ticket). name: PendingWorkflow required: false - description: Comma-separated list of stages in the certificate lifecycle. Will retrieve certificates at one or more of the stages. isArray: true name: Stage required: false - description: Find certificates with a stage greater than the specified stage (does not include specified stage). name: StageGreater required: false - description: Stage before which to retrieve certificates. name: StageLess required: false - description: Whether to include only certificates with validation disabled (1) or enabled (0). name: ValidationDisabled required: false - description: Find certificates by Country attribute of Subject DN. name: C required: false - description: Find certificates by Common name attribute of Subject DN. name: CN required: false - description: 'Find certificates by issuer. Use the CN ,O, L, S, and C values from the certificate request. Surround the complete value within double quotes ("). If a value already has double quotes, escape them with a second set of double quotes. For example, OU=""(c) 2020 Entrust, Inc. - for authorized use only"".' name: Issuer required: false - description: Algorithm for the public key in the certificate (e.g., RSA, DSA). name: KeyAlgorithm required: false - description: Comma-separated list of the bit size of the public key in the certificate (e.g., 2048). name: KeySize required: false - description: The size for which the public key size is greater than. name: KeySizeGreater required: false - description: The size for which the public key size is less than. name: KeySizeLess required: false - description: Find certificates by Locality/City attribute of Subject Distinguished Name (SDN). name: L required: false - description: Find certificates by Organization attribute of Subject DN. name: O required: false - description: Find certificates by State/Province attribute of Subject DN. name: S required: false - description: Serial number of the certificate. name: Serial required: false - description: The algorithm used to sign the certificate (e.g., SHA1RSA). name: SignatureAlgorithm required: false - description: Date on which the certificate was issued (e.g., 2015- 10-08T19:15:35.6431456Z or 2015-10-08). name: ValidFrom required: false - description: Date on which the certificate expires (e.g., 2015-10- 08T19:15:35.6431456Z or 2015-10-08). name: ValidTo required: false - description: Date after which the certificates expire. name: ValidToGreater required: false - description: Date before which the certificates expire. name: ValidToLess required: false - description: The maximum number of certificates to return. Default value = 50. name: Limit required: false description: "Gets Venafi certificates query. All dates are in 2016-11-12T00:00:00.0000000Z format. For additional field information, see: https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-attribute.htm and https://ao-tlspd.dev.ven-eco.com/aperture/help/Content/SDK/WebSDK/r-SDK-Certificates-search-status.htm" name: venafi-get-certificates outputs: - contextPath: Venafi.Certificate.CreatedOn description: The exact date and time when the certificate object was created. type: date - contextPath: Venafi.Certificate.DN description: The DN of the certificate. type: string - contextPath: Venafi.Certificate.Name description: The name of the certificate. type: string - contextPath: Venafi.Certificate.ParentDN description: The full path to the parent of the object in Trust Protection Platform. type: string - contextPath: Venafi.Certificate.SchemaClass description: The class name of the certificate object. type: string - contextPath: Venafi.Certificate.ID description: The certificate object GUID. type: string - contextPath: Venafi.Certificate.X509 description: 'Enrolled or issued certificate information: CN, Issuer, KeyAlgorithm, KeySize, SANS, Serial, Subject, Thumbprint, ValidFrom, ValidTo.' type: dictionary - name: venafi-get-certificate-details arguments: - name: guid required: true description: The ID of the certificate. Get certificates ID by running the command “venafi-get-certificates”. outputs: - contextPath: Venafi.Certificate.ID description: The certificate object GUID. type: string - contextPath: Venafi.Certificate.ParentDN description: The full path to the parent of the object in Trust Protection Platform. type: string - contextPath: Venafi.Certificate.CreatedOn description: The exact date and time when the Certificate object was created. type: date - contextPath: Venafi.Certificate.DN description: The DN of the certificate. type: string - contextPath: Venafi.Certificate.Name description: The name of the certificate. type: string - contextPath: Venafi.Certificate.SchemaClass description: The class name of the certificate object. type: string - contextPath: Venafi.Certificate.Approver description: An array of one or more users or groups who are certificate approvers. type: string - contextPath: Venafi.Certificate.CertificateAuthorityDN description: The CA template that is required for certificate renewal. type: string - contextPath: Venafi.Certificate.Contact description: An array of one or more users or groups who receive event notifications. The events notify people about certificate expiration and validation failures. type: string - contextPath: Venafi.Certificate.Description description: Certificate description. type: string - contextPath: Venafi.Certificate.ManagedBy description: Certificate manager. type: string - contextPath: Venafi.Certificate.ManagementType description: The level of management that the Trust Protection Platform applies to the certificate. type: string - contextPath: Venafi.Certificate.CertificateDetails.AIAKeyIdentifier description: Authority key identifier. type: string - contextPath: Venafi.Certificate.CertificateDetails.Issuer description: The CN, O, L, S, and C values from the certificate request. type: string - contextPath: Venafi.Certificate.CertificateDetails.Serial description: The unique serial number that the CA assigned to the certificate. type: string - contextPath: Venafi.Certificate.CertificateDetails.Subject description: The CN, O, L, S, and C values from the certificate request. type: string - contextPath: Venafi.Certificate.CertificateDetails.Thumbprint description: The SHA1 thumbprint hash of the certificate. type: string - contextPath: Venafi.Certificate.CertificateDetails.ValidFrom description: Certificate validation start date. type: string - contextPath: Venafi.Certificate.CertificateDetails.ValidTo description: Certificate validation end time. type: string - contextPath: Venafi.Certificate.CertificateDetails.AIACAIssuerURL description: Available only when the certificate was issued by a well-configured CA. An array of Authority Information Access (AIA). Shows the CA issuer link and the CA's certificate details. May also include Online Certificate Status Protocol (OCSP) information about revocation. type: array - contextPath: Venafi.Certificate.CertificateDetails.CN description: The Common Name attribute of Subject Distinguished Name (DN). type: string - contextPath: Venafi.Certificate.CertificateDetails.EnhancedKeyUsage description: The PKI Server Authentication object identifier (OID). type: string - contextPath: Venafi.Certificate.CertificateDetails.KeyAlgorithm description: The algorithm for the public key. type: string - contextPath: Venafi.Certificate.CertificateDetails.KeySize description: Only available for RSA certificates. The bit size of the public key. type: string - contextPath: Venafi.Certificate.CertificateDetails.KeyUsage description: A list of Key Usage extension values that describe the purpose of the public key. type: string - contextPath: Venafi.Certificate.CertificateDetails.OU description: An array of Organization Units or names. type: string - contextPath: Venafi.Certificate.CertificateDetails.PublicKeyHash description: The public key hash string. Available only when the certificate has a private key. type: string - contextPath: Venafi.Certificate.CertificateDetails.SKIKeyIdentifier description: The generated Subject Key Identifier (SKI). type: string - contextPath: Venafi.Certificate.CertificateDetails.SignatureAlgorithm description: The signature algorithm for signing the certificate. type: string - contextPath: Venafi.Certificate.CertificateDetails.SignatureAlgorithmOID description: The Signature Object ID for signing the certificate. type: string - contextPath: Venafi.Certificate.CertificateDetails.StoreAdded description: The Date Time stamp when the private key was added to the store. type: string - contextPath: Venafi.Certificate.CertificateDetails.SubjectAltNameDNS description: An array of Domain Name System (DNS) SANs. type: string - contextPath: Venafi.Certificate.CertificateDetails.SubjectAltNameEmail description: An array of Email SANs. Based on RFC 822. type: string - contextPath: Venafi.Certificate.CertificateDetails.SubjectAltNameOtherNameUPN description: An array of User Principal Name (UPN) SANs. type: string - contextPath: Venafi.Certificate.CertificateDetails.SubjectAltNameIPAddress description: An array of IP address SANs. type: string - contextPath: Venafi.Certificate.CertificateDetails.SubjectAltNameURI description: An array of Uniform Resource Indicator (URI) SANs. type: string - contextPath: Venafi.Certificate.CreatedBy description: The object that initiated enrollment or provisioning changes. The default is Web SDK. type: string - contextPath: Venafi.Certificate.Origin description: Filter by origin. type: string - contextPath: Venafi.Certificate.ProcessingDetails description: 'Absent when the certificate is not currently processing in the Trust Protection Platform lifecycle: InError, InProcess, Stage, Status, TicketDN.' type: dictionary - contextPath: Venafi.Certificate.RenewalDetails description: A list of certificate renewal information. type: dictionary - contextPath: Venafi.Certificate.ValidationDetails description: 'A list of host identity information and the overall certificate validation state result. If no validation occurred, only the lastvalidationstateupdate field appears. All other validationdetails fields are absent.' type: dictionary description: Uses a certificate GUID to extract more details from the certificate store. runonce: false script: '-' type: python subtype: python3 dockerimage: demisto/python3:3.12.13.10116658 fromversion: 6.9.0 tests: - VenafiV2_Test