# 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="/files/AxPBYXadkWeYRNLdHK5h" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/XARZbax4j4wflAhBqCxu" 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="/files/crNNmiPoovAdWAfXctMW" alt=""><figcaption></figcaption></figure>

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

![](/files/ptIeISfUt53suDTwzqu2)

<figure><img src="/files/u4eVVop76Nqe49O0bwGd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/wjHN3cOfvnOfTSs8dtdd" alt=""><figcaption></figcaption></figure>

## Manage Key Pair

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

<figure><img src="/files/zK6j3vZ0RDkRtOMuOxHF" 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="/files/beGBVkCkuTQ60lNH92hA" alt=""><figcaption></figcaption></figure>

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

![](/files/rpJSdWfKHRtg0aysVdfp)\
The generated key pair will appear under **View All**.

<figure><img src="/files/fokDJG3pn9tC8fBkACGa" 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="/files/q87cScJPEN70I3aDSd9D" alt=""><figcaption></figcaption></figure>

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

![](/files/Ux12zODAFDPEv3Dreaxt)

![](/files/4vlYkGhyi0rHVhGsMePG)\
Download the CSR for signing by the CA.

<figure><img src="/files/QK0cOX9iyEWyRGZeG2wS" 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="/files/MiYoH2cRRbU3JrM1xlxJ" alt=""><figcaption></figcaption></figure>

Add the required **Subject DN details**:

* Common Name
* Country
* Organization
* Organization Unit

<figure><img src="/files/bRDimug0Zm6B9MvaCwzb" 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="/files/Cg424iRTK0PQXWux0fwA" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/u1nWTPPnHRvo1zKjAycj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/SRw2zqzNnHezqBTCxKKr" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/ecAbKbD1zdiSScXFT3Ul" 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.

![](/files/68CnHnHOlWP2e2NGheJb)\
Once authenticated, click **Sign CSR** to generate the signed certificate.

![](/files/A9C7BywBRJ8vO2qEJxkF)\
The signed certificate will be ready for download.

<figure><img src="/files/Sza2hPFzeJO76fKmiL6I" alt=""><figcaption></figcaption></figure>

Signed Certificate

<figure><img src="/files/LkMC6P0dfOc2xqJJF1du" alt=""><figcaption></figcaption></figure>

## Manage TSA Certificate

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

<figure><img src="/files/EN32N2D4keQ6bnypUGzr" 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="/files/1Hn7Vk40eCiFvh9R1VPH" 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="/files/GXAJniQG7QUYfEmsaTwB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nOMwFtzqckeLX9yLN9Gi" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/CWcIweKk0YJWR9Q5nwqz" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/hPXQoOk0yXG9w8AwNplP" 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**.

![](/files/64dnNSlJfdqNq4kLRUKz)

![](/files/2SLLuEAJi4MY3hpqWP17)\
A confirmation message will confirm successful client registration.

![](/files/S5OLJbP9Say6K929kygi)\
Registered clients will be listed under **View All**.

<figure><img src="/files/kLfvdm9abJxjEats9Goz" alt=""><figcaption></figcaption></figure>

## Manage NTP Devices

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

<figure><img src="/files/EGfEmUfi2Otb88fAD08M" alt=""><figcaption></figcaption></figure>

Provide the following:

* NTP Device Name
* NTP Device URL

<figure><img src="/files/gaQm4M9WtkKxtW6ptfnK" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/UxE3iMSVJFtDR6gGNiPT" alt=""><figcaption></figcaption></figure>

## Manage Policy

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

<figure><img src="/files/YcdDAsYRmMa7zvFbP87M" 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.

![](/files/FMPv9cxZVwyPCrwvwhR6)\
Click **Proceed** to save the policy.\
A success message will confirm policy creation.

<figure><img src="/files/joufyZudkVSKmDw4KqVP" alt=""><figcaption></figcaption></figure>

## Time Stamping endpoint for TSA requests

<figure><img src="/files/LKiXGRMMCcT9o649g0qU" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emca.emudhra.com/tutorials-and-guides/setting-up-time-stamping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
