# Changing Device date/time

## Introduction

The connector can only work when the device date/time is correctly set. This is due to the security applied on exchanged tokens and keys.&#x20;

When a connector has been installed on a device, at a moment which is in the past (other day/time), this results in the connector not working, even though the date/time has been set correctly on the system (post-installation).&#x20;

### Solution

To solve this problem the followin steps need to be executed:

* remove all device related keys
* restart the connector

#### Windows

Go to the installation folder of the connector:

`%localappdata%/Trust1Connector`

Delete all security relate files (selected below):

<figure><img src="https://2064684258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOgDbJ5ZvPk7FwgPBzRqA%2Fuploads%2F1QXOCwS3H66JNryPhDU9%2Fimage.png?alt=media&#x26;token=ed3ec7e3-baa7-4f9c-8f8a-42fa0c4c3410" alt=""><figcaption></figcaption></figure>

Those files are:

* device.priv
* device.pub
* device\_der.priv
* device\_der.pub
* device\_x509\_der.pub
* ds-ssl.json
* ds-txs.bck

{% hint style="info" %}
Those files will be automatically generated by the connector after the next step
{% endhint %}

Restart the connector by executing the **`'t1c-launch'`**

The process will be stopped, and restarted. The 't1c-launch' process must stop running, and the new processes will trigger the re-generation of the new keys.&#x20;

Due to this action, the device performs a new registration to the Distribution service, this can be verified in the **api.log** file (in the /Logs folder)

#### Mac OSX

Go to the installation folder of the connector:

`cd ~/Library/Application\ Support/Trust1Team/Trust1Connector/`

Open the folder in finder:

`open .`

Delete all security relate files (selected below):

<figure><img src="https://2064684258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOgDbJ5ZvPk7FwgPBzRqA%2Fuploads%2F8eN2s141TCOpYdrlmucn%2Fimage.png?alt=media&#x26;token=8f93875e-9aa1-4c76-8a40-3a214fa42907" alt=""><figcaption></figcaption></figure>

Those files are:

* device.priv
* device.pub
* device\_der.priv
* device\_der.pub
* device\_x509\_der.pub
* ds-ssl.json
* ds-txs.bck

{% hint style="info" %}
Those files will be automatically generated by the connector after the next step
{% endhint %}

Use the terminal to open the connector installation folder:

`cd ~/Library/Application\ Support/Trust1Team/Trust1Connector`

Execute the t1c-launch to restart

`./t1c-launch --restart`

The process will be stopped, and restarted. The 't1c-launch' process must stop running, and the new processes will trigger the re-generation of the new keys.&#x20;

Due to this action, the device performs a new registration to the Distribution service, this can be verified in the **api.log** file (in the /Logs folder)
