> 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/c/csc-global.md).

# CSC Global

CSC Global provides enterprise domain name, DNS and digital certificate management. OctoXLabs reads your TLS certificates and DNS zones from the CSCDomainManager API (v2) so that expiry and domain ownership can be tracked.

## Use cases

* **Track TLS certificates that are about to expire.** Review the expiry dates of the certificates that CSC Global manages in the Certificates inventory.
* **Review the DNS zones you manage at CSC.** List the zones in the Domains inventory.
* **Collect only active certificates.** Turn off Fetch All Certificate Statuses to leave out certificates that are not active.

## Before you begin

### Network

| Source              | Destination                           | Port | Protocol |
| ------------------- | ------------------------------------- | ---- | -------- |
| OctoXLabs connector | apis.cscglobal.com (Domain parameter) | 443  | HTTPS    |

### Required permissions

| Scope or role                                        | Permission                                | Needed for               |
| ---------------------------------------------------- | ----------------------------------------- | ------------------------ |
| CSC service account (permissions requested from CSC) | Read access to TLS certificates and zones | Certificates and domains |

CSC creates the service account with the permissions you request. The sources do not list specific permission names.

## Create credentials in CSC Global

{% stepper %}
{% step %}

### Request API access

Contact your CSC service team. Give them the details of the service account and of the API administrator or administrators who will manage the credentials.
{% endstep %}

{% step %}

### CSC creates the key and account

CSC generates your API key and creates the service account with the permissions you requested.
{% endstep %}

{% step %}

### Retrieve the key and token

The API administrator logs in to CSCDomainManager at `https://weblogin.cscglobal.com`, retrieves the API key and generates the bearer token for the service account.
{% endstep %}
{% endstepper %}

The CSCDomainManager API documentation is at `https://www.cscglobal.com/cscglobal/docs/dbs/domainmanager/api-v2/`.

## Connection parameters

| Parameter                      | Required | Type    | Default            | Description                                                                                                        |
| ------------------------------ | -------- | ------- | ------------------ | ------------------------------------------------------------------------------------------------------------------ |
| Domain                         | No       | String  | apis.cscglobal.com | CSC API host, without a scheme.                                                                                    |
| API Key                        | Yes      | String  | None               | CSC API key. Stored as a sensitive value.                                                                          |
| Bearer Token                   | Yes      | String  | None               | Bearer token of the service account. Stored as a sensitive value.                                                  |
| Fetch All Certificate Statuses | No       | Boolean | True               | When on, certificates of every status are fetched. When off, only active ones (`status==ACTIVE`). Advanced option. |
| Timeout                        | No       | Integer | 30                 | Seconds to wait for an API response. Advanced option.                                                              |

## Troubleshooting

| Error message                                                  | Cause                                  | Fix                                                                                                              |
| -------------------------------------------------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an error status. | Check the API key, that the bearer token is valid, and that the service account can read certificates and zones. |

## Change history

{% hint style="info" %}
Available starting from version 5.6.8.
{% endhint %}
