# Setting Up Time Stamping

Time Stamping in emCA allows administrators to configure and manage a Time Stamping Authority (TSA) for providing trusted timestamp services. The setup involves creating key profiles, generating key pairs and CSRs, issuing TSA certificates, and registering clients. This section provides a step-by-step guide to complete the configuration and enable timestamping in emCA.

## Manage Key Profile

To begin configuring Time Stamping, log in to the **eMudhra TSA portal** with your credentials.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FROEZ3WRbE4s5OURe0k4w%2Fimage.png?alt=media&#x26;token=5691795d-7a82-4d1a-aaf5-21fdbdc32b77" alt=""><figcaption></figcaption></figure>

Navigate to **Manage Timestamping Signer → Manage Key Profile → New Profile**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FgKytgvzfO84ZliQ8Idka%2Fimage.png?alt=media&#x26;token=17a0e630-961b-428b-9608-e06408f95245" alt=""><figcaption></figcaption></figure>

Enter the following details:

* **Profile Name**: Identifier for the key profile
* **Profile Type**: Location where the key profile is generated
* **Configuration Type**: Select the configuration type (e.g., PKCS11)
* **HSM Password**: Provide the hardware security module password

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F2yG6q1loq8HonUBqRejz%2Fimage.png?alt=media&#x26;token=ae58a2da-371c-4447-8a67-6024ed6cfcc2" alt=""><figcaption></figcaption></figure>

Click **Confirm** to complete the key profile creation.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FWWnY09362VGLSUhIL7Qt%2Fimage.png?alt=media\&token=182df876-69da-4cf9-a22a-21397af05c03)

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FPG4rXTq32GFEGjoGipwA%2Fimage.png?alt=media&#x26;token=ef9dd225-9a6f-431b-983a-bbde8517a880" alt=""><figcaption></figcaption></figure>

The new profile will be listed under **Manage Key Profiles → View All**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FN9Kpo4znKSAsWfFfTmK3%2Fimage.png?alt=media&#x26;token=c48e9251-af52-4e14-a2c9-ef352aeaaf21" alt=""><figcaption></figcaption></figure>

## Manage Key Pair

Next, generate a key pair using the key profile created in the previous step.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FWJ2hsq52CivsgugzoaWd%2Fimage.png?alt=media&#x26;token=b4d403d3-f76a-47fd-b57d-e8d8a0afe8dc" alt=""><figcaption></figcaption></figure>

Go to **Manage Timestamping Signer → Manage Key Pair → Generate Key Pair** and provide:

* **Number of Keys**
* **Key Profile** (select the one you just created)
* **Signature Algorithm**
* **Key Algorithm & Size**

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FBAIudVtYg8TiWzy8UOzJ%2Fimage.png?alt=media&#x26;token=5c6fdd12-b08e-4c44-9afc-a5d17a718e4f" alt=""><figcaption></figcaption></figure>

Click **Generate Key Pair** to create the key pair.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FlLUITgE4tIsUBEfIdK8y%2Fimage.png?alt=media\&token=10c5a63b-435c-428d-ab14-2c5e01d772de)\
The generated key pair will appear under **View All**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F79ha6tu3cWyz9Hyxgl4y%2Fimage.png?alt=media&#x26;token=858f78ea-ad87-4834-9e4f-5bd109e68b87" alt=""><figcaption></figcaption></figure>

To generate a CSR (Certificate Signing Request), click on the **Action** icon of the created key pair. Enter the required **Subject DN details**:

* Common Name
* Organization
* Organization Unit
* Country

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FQvXLDWIA5NsKiIvLZ6cQ%2Fimage.png?alt=media&#x26;token=f5ecd315-d0d5-46b8-9140-e4cbb838097d" alt=""><figcaption></figcaption></figure>

Click **Save and Proceed**, then **Create** to generate the CSR.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FZZ8z4CFqd3Ms6gGz1LHf%2Fimage.png?alt=media\&token=9afc08cd-5c56-440b-9b2d-ea32a270d9b0)

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FeN4cWjlMhxVuWqXmkCsQ%2Fimage.png?alt=media\&token=902bb770-19ea-4869-813c-b356238cb2de)\
Download the CSR for signing by the CA.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F0FSiuWr0Lw6maB3Gy4Ll%2Fimage.png?alt=media&#x26;token=26a3bb3b-1c26-4517-9d21-de7f147b479e" alt=""><figcaption></figcaption></figure>

## TSA Certificate Profile Creation

Log in as an **Administrator** and navigate to **Manage Profiles → Certificate Profiles → X.509**.

Provide the following basic information:

* **Profile Type**: User
* **Sub Type**: New
* **Profile Name**: Identifier for the TSA profile
* **Validity**: Certificate validity period
* **Issuing CA**: Select the appropriate issuing CA
* **Signature Algorithm**: Select the preferred algorithm

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FgaSYsDLCGhnJoCrlymQu%2Fimage.png?alt=media&#x26;token=90b3d1b1-aee9-434b-afeb-e0923dda4093" alt=""><figcaption></figcaption></figure>

Add the required **Subject DN details**:

* Common Name
* Country
* Organization
* Organization Unit

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FtBZJz6WXqhSd4OFwHICL%2Fimage.png?alt=media&#x26;token=d3ca4f1f-fed1-4ce1-b118-b5b2e41ecb9f" alt=""><figcaption></figcaption></figure>

Configure **X.509 Certificate Extensions**, such as:

* Basic Constraints
* Key Usage
* Enhanced Key Usage
* Authority Key Identifier
* Subject Key Identifier
* Authority Information Access
* CRL Distribution Points
* Certificate Policy

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FfnxI9Cjo0gNwMfqoSpCC%2Fimage.png?alt=media&#x26;token=fbc305ec-d1c6-42e1-b447-512fd62c02ae" alt=""><figcaption></figcaption></figure>

Click **Proceed** and authenticate to complete the creation.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FzCMyMVWMR0YekJkPVtu4%2Fimage.png?alt=media&#x26;token=9b3cb7f0-5cf6-479f-91fb-4e601149d4d1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FGD3dQtTGzpHcwNdENRHx%2Fimage.png?alt=media&#x26;token=f5072f4d-5443-4049-83f8-dfb10b05bc92" alt=""><figcaption></figcaption></figure>

The profile will be available under **View All**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FnlqLtIWqJuE64F53xdBh%2Fimage.png?alt=media&#x26;token=b91949c6-1eee-447d-892d-61575a57c2e7" alt=""><figcaption></figcaption></figure>

## Sign CSR – TSA Certificate

Log in as an **Officer** and navigate to **Manage User Certificate → Sign CSR**.

* Upload the CSR generated earlier
* Select the **TSA Certificate Profile** created by the Administrator
* Choose the **Certifying Authority** (Root CA or relevant issuer)

Click **Proceed** to view CSR details, then authenticate as an Officer.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FPWxULYzsBVAkpviwlPfM%2Fimage.png?alt=media\&token=48caa575-416d-4748-8951-61b8b2357285)\
Once authenticated, click **Sign CSR** to generate the signed certificate.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FDjR7OgeJN2IFJT90TjUt%2Fimage.png?alt=media\&token=7e3d83ab-eef7-44bd-b8da-f0a376eb753e)\
The signed certificate will be ready for download.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FDcIxbM7xuq2DyFpxTYRX%2Fimage.png?alt=media&#x26;token=cf7783ac-74a8-476a-a01a-bcdaeca8ee7a" alt=""><figcaption></figcaption></figure>

Signed Certificate

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FmgaxPEBIljAXMl1KwxUR%2Fimage.png?alt=media&#x26;token=75adedb3-8519-40e6-a39b-cb29b907df79" alt=""><figcaption></figcaption></figure>

## Manage TSA Certificate

Log in as **TSA Admin** and navigate to **Manage Timestamping Signer → Manage TSA Certificates**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F1eIi5m5xFbcjdZDTUK0p%2Fimage.png?alt=media&#x26;token=989fa761-8049-4b46-9522-d441af255343" alt=""><figcaption></figcaption></figure>

Click **Import Issuer Certificate** and upload the Root/Issuer CA certificate. A success message will confirm the import.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FX9sS5JuSEppCL5LWHAZv%2Fimage.png?alt=media&#x26;token=56b4f007-e981-474a-ba87-7cb92643da8b" alt=""><figcaption></figcaption></figure>

Click the **Import** action for the TSA Auth Certificate and upload the signed TSA certificate.\
A success response will be displayed upon successful import.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FVB8fG0f8lVlZmzSjIw9E%2Fimage.png?alt=media&#x26;token=016d10ea-b604-4d92-a23b-0415e25ea65a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FjTGGJJ6JKegIHXvGHtmr%2Fimage.png?alt=media&#x26;token=b1440804-a094-455c-acad-3526ba1a789a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FwzAy0GQmllDscJz4TmfJ%2Fimage.png?alt=media&#x26;token=c643bbda-0858-45e5-bd74-44d86323f50d" alt=""><figcaption></figcaption></figure>

The signed TSA certificate will now be visible under the TSA Certificates list.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FqJkVEGPxjEadDWaVdSdT%2Fimage.png?alt=media&#x26;token=ff029e2f-dc9e-4d7c-b32f-95b0ef67ae43" alt=""><figcaption></figcaption></figure>

## Client Registration – TSA Services

To register clients for TSA services, log in as **TSA Admin**.

Go to **Client Registration → New Registration** and provide:

* Client Name
* Username
* Password
* Confirm Password

Click **Save and Proceed**, then **Submit**.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F0n7FHbKkkfhxlWIN2hGs%2Fimage.png?alt=media\&token=1c2456cc-6898-4ef6-9ced-c3639c6f7127)

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FJRQbsZnA1LtRIIdMpwXE%2Fimage.png?alt=media\&token=7e8e2f76-7969-466e-99fd-957f8e8038f0)\
A confirmation message will confirm successful client registration.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FG742EcJCKHXMeNngp1Tw%2Fimage.png?alt=media\&token=c229aa41-552d-4ed2-be28-3563f5b4269b)\
Registered clients will be listed under **View All**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F4YH1BLDihrecYIIdx7tc%2Fimage.png?alt=media&#x26;token=c52ca73a-9e64-454f-80d5-c22e16284347" alt=""><figcaption></figcaption></figure>

## Manage NTP Devices

To configure NTP devices, go to **Manage NTP Devices → New NTP Device**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FkaDBkoY3ERhfhGG8R2R2%2Fimage.png?alt=media&#x26;token=ffa0955f-e9a6-4f22-8e47-0bf509c832b4" alt=""><figcaption></figcaption></figure>

Provide the following:

* NTP Device Name
* NTP Device URL

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2F17BHQwp2i7el44ECIb9K%2Fimage.png?alt=media&#x26;token=24483fee-ed75-4af7-b085-9f9c16581913" alt=""><figcaption></figcaption></figure>

Click **Proceed** to add the device.\
A confirmation message will confirm successful addition.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FLlCK2ozXZcixF8MMof4V%2Fimage.png?alt=media&#x26;token=e3f53d3d-996e-42e8-a2e3-26c26ae0cf1f" alt=""><figcaption></figcaption></figure>

## Manage Policy

To define TSA policies, go to **Manage Policies → New Policy**.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FdKl65aX80uuBe2gH6W0c%2Fimage.png?alt=media&#x26;token=887c4bf6-0abe-41a5-8bec-3d42da670763" alt=""><figcaption></figcaption></figure>

Provide the following details:

* **Policy ID**
* Select the **Signed TSA Certificate** from the dropdown
* **NTP Server Name**

If you select **Mark as Default**, the policy will be applied to all clients by default.

![](https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FKX4JDjbqb8XcLbC4kszG%2Fimage.png?alt=media\&token=4430d92b-2ac1-4676-905f-8f231d61f640)\
Click **Proceed** to save the policy.\
A success message will confirm policy creation.

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2Fzcskjyuf8IBArqb0Q4LZ%2Fimage.png?alt=media&#x26;token=e40a81ff-5377-4e9f-b248-4b563999f17f" alt=""><figcaption></figcaption></figure>

## Time Stamping endpoint for TSA requests

<figure><img src="https://2804668976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwstGDJbR4yGRTr2aEFp%2Fuploads%2FJiaUTxOUlPIp4NAnjkON%2Fimage.png?alt=media&#x26;token=0af86d87-9e8d-4d31-ba51-ec2e21e7c63b" alt=""><figcaption></figcaption></figure>
