# 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://1128878087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz2oJcMDLUVEPd3GcFUrT%2Fuploads%2FTFFrL2pKq1SlHb3ImAoz%2FScreenshot%202024-02-19%20at%2013.39.41.png?alt=media&#x26;token=d0526ed7-39a4-45cd-a5a3-6e261d13efa8" alt=""><figcaption><p>connector installation folder Windows</p></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://1128878087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz2oJcMDLUVEPd3GcFUrT%2Fuploads%2FKDg7DCRFkNpN55qJyJYo%2FScreenshot%202024-02-19%20at%2013.46.42.png?alt=media&#x26;token=a1df75e4-17cb-48d3-9543-11ba8f7ca518" alt=""><figcaption><p>connection installation folder Mac OSX</p></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)
