The Document Signer application is available for multiple Java versions: **Java 17**, **Java 21**, and **Java 24**. All versions follow the same setup steps, with the only difference being the Java version requirement.
## Supported Java Versions
-**Java 17** - Use `DocSigner-Java17/docsigner.war`
-**Java 21** - Use `DocSigner-Java21/docsigner.war`
-**Java 24** - Use `DocSigner-Java24/docsigner.war`
## Setup Instructions
1. Setup a Document Signer from the Settings Tab in your Leegality Dashboard, by entering your application URL. For example, if you are deploying your application at docsigner.example.com, please save the same in the URL Field. Alternatively, you can start by entering any demo URL and update the same later.
2. On successful set, you will receive an eSign ID.
3. Download *docsigner.war*.
3. Download the appropriate *docsigner.war* file based on your Java version:
- For Java 17: Download from `DocSigner-Java17/docsigner.war`
- For Java 21: Download from `DocSigner-Java21/docsigner.war`
- For Java 24: Download from `DocSigner-Java24/docsigner.war`
4. Please ensure that Java is installed on your server. (Recommended version: Java 17.0.11)
4. Please ensure that the corresponding Java version is installed on your server (Java 17, Java 21, or Java 24)
5. Setup TOMCAT 10.1.23 or above on your server- Read [here](https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-10-on-ubuntu-20-04) to know how.
5. Setup TOMCAT 11 .1.23 or above on your server- Download [here](https://archive.apache.org/dist/tomcat/tomcat-11/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz).
6. After installing Tomcat, go to *webapps* directory and place the *docsigner.war* file in it. Please ensure that you do not change the name of the WAR file.
@@ -32,9 +45,162 @@
10. Application will run at **/docsigner**. Please ensure that it does not conflict with any other application.
Now, whenever a signing request is received for your eSign ID, the document will be eSigned using your Document Signer Certificate.
11. Verify your certificate configuration by accessing:
You can further configure Automated Signing using Document Signer by creating a passkey for the same in your Leegality Dashboard. Pursuant to the same, users from your Organisational Department would be able to get documents eSigned using Document Signer Certificate either using our API Gateway or using the Leegality Dashboard.
### Step 3: Run Docker Container
Run the container using the following command:
**For Java 17:**
```bash
docker run -d-p 8080:8080 --name docsigner-app docsigner:java17
```
**For Java 21:**
```bash
docker run -d-p 8080:8080 --name docsigner-app docsigner:java21
```
**For Java 24:**
```bash
docker run -d-p 8080:8080 --name docsigner-app docsigner:java24
This will return the certificate details including common name and expiry date if configured correctly.
### Managing the Container
**Stop the container:**
```bash
docker stop docsigner-app
```
**Start the container:**
```bash
docker start docsigner-app
```
**Restart the container:**
```bash
docker restart docsigner-app
```
**Remove the container:**
```bash
docker stop docsigner-app
docker rm docsigner-app
```
---
Now, whenever a signing request is received for your eSign ID, the document will be eSigned using your Document Signer Certificate.
**Logs:** All communication with your application is loggable and is enabled by default. You have option to disable the same but that is not recommended. The logs will be created in catalina.out file in TOMCAT logs Directory. You can also change the destination if you wish so. See this link for more details.