> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/d/denodo-certificate.md).

# Denodo Certificate

Denodo is a data virtualization platform. This adapter reads one published Virtual DataPort view through the Denodo RESTful Web Service and builds certificates from its columns. You tell OctoXLabs which column holds which value.

## Use cases

* **Track certificate expiry.** List certificates collected from Denodo and review their expiry dates in the certificate inventory.

```
Adapters = denodo-certificate
```

## Before you begin

### Network

| Source              | Destination                                            | Port                         | Protocol                           |
| ------------------- | ------------------------------------------------------ | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | Denodo server (Ip parameter), path `/denodo-restfulws` | 9090 (default, configurable) | HTTPS (HTTP when Is secure is off) |

Denodo publishes its web applications on port 9090 unless the port was changed in Denodo Control Center under **Configure** > **Web Container Configuration**, or in the VDP Administration Tool under **Administration** > **Server Configuration** > **Server connectivity** (**Web Container HTTP Port Number**).

### Required permissions

| Scope or role                        | Permission | Needed for        |
| ------------------------------------ | ---------- | ----------------- |
| Virtual database that holds the view | Connect    | Reaching the view |
| The view                             | Select     | Reading rows      |

The RESTful Web Service must be enabled on the server. If it is disabled, no Denodo adapter can connect.

## Create credentials in Denodo

{% stepper %}
{% step %}

### Find the view

Open the view in the Denodo Design Studio or the VDP Administration Tool. Note its database, its name and its column names.
{% endstep %}

{% step %}

### Prepare a Virtual DataPort user

The RESTful Web Service uses HTTP Basic with Virtual DataPort credentials, so there is no separate API key. Use a user with Connect on the database and Select on the view.
{% endstep %}

{% step %}

### Check the values

Open `http(s)://<ip>:<port>/denodo-restfulws/<database name>/views/<view name>?$start_index=0&$count=1` in a browser and sign in with the same user. A JSON document with an `elements` array means the connection values are correct.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Column names are case sensitive and must be written exactly as the view exposes them. For a field inside a compound column use dotted notation, for example `contact.email`.
{% endhint %}

## Connection parameters

| Parameter         | Required | Type               | Default | Description                                                                                                       |
| ----------------- | -------- | ------------------ | ------- | ----------------------------------------------------------------------------------------------------------------- |
| Ip                | Yes      | String             | None    | Host name or IP address of the Denodo server that runs the web container.                                         |
| Port              | No       | Integer            | 9090    | Web container port. If HTTPS is enabled on the container, enter its HTTPS port and keep Is secure on.             |
| Username          | Yes      | String             | None    | Virtual DataPort user.                                                                                            |
| Password          | Yes      | String (sensitive) | None    | Password of the user.                                                                                             |
| Database name     | Yes      | String             | None    | Virtual database that contains the view.                                                                          |
| View name         | Yes      | String             | None    | View to read. It must be reachable through the RESTful Web Service.                                               |
| Primary field     | Yes      | String             | None    | Column that uniquely identifies the certificate, for example a serial number. Rows where it is empty are skipped. |
| Certificate field | Yes      | String             | None    | Column that holds the certificate, in PEM or base64 DER form.                                                     |
| Expiry field      | Yes      | String             | None    | Column with the expiration date. Text is accepted when it is a recognizable date.                                 |
| Name field        | Yes      | String             | None    | Column shown as the certificate name, usually the common name.                                                    |
| Is secure         | No       | Boolean            | true    | Use HTTPS. Turn it off only when the web container serves plain HTTP.                                             |
| Per page          | No       | Integer            | 100     | Rows requested per call, sent as `$count`. Lower it for very wide rows.                                           |
| Proxy             | No       | String             | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                                       |
| Timeout           | No       | Integer            | 30      | Seconds to wait for a response.                                                                                   |

{% hint style="warning" %}
A value that cannot be read as a date leaves the expiry date empty. The certificate is still collected. Check the date format on the first discovery.
{% endhint %}

## Troubleshooting

| Error message                                                  | Cause                                                                                    | Fix                                                             |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The REST service answered with an error status. This is the shared REST connector error. | Check the credentials, privileges, database name and view name. |

## Change history
