Site icon SSL.com

eSigner Document Signing Gateway Guide

The eSigner document signing gateway API distributes as a docker image and installs on the customer’s premise. It performs the following actions:

Requirements

Request:-

URL:- /v1/pdf/eseal A valid access token is required to access the API. A guide on how to retrieve the Access Token can be found on this article: Remote Document Signing with eSigner CSC API
{
    "credential_id": "db1653b7-6135-4a10-809b-e29a25d3bb7b",
    "page_number": 0,
    "signing_reason": "",
    "signing_location": "",
    "contact_Info": "",
    "sig_field_position":{
      "x": 160,
      "y":245,
      "width":250,
      "height": 150  
    },
    "hand_signature": "<HAND_SIGNATURE_IMAGE>",
    "pdf": ""
}

Legend:

Response:-

{
     "signed_pdf": ""
}

Installation Instructions

  1. Unzip the document signing gateway release
  2. Open the application.properties files and change accordingly
    # For sandbox testing, set the CSR URL to https://cs-try.ssl.com and for production set it to https://cs.ssl.com
    
    csc.url=https://cs-try.ssl.com
    
    # URL of the SSL.com TSA
    
    tsa.url=http://ts.ssl.com
    
    # Port in docker container
    
    server.port=8081
    
    # TLS server certificate settings. One can use self signed certificate or private PKI or public PKI certificate
    
    server.ssl.enabled=true
    
    server.ssl.key-store: ./server.jks
    
    server.ssl.key-password: secret
    
    server.ssl.key-store-password: secret
  3. Open the Dockerfile
    FROM eclipse-temurin:17.0.9_9-jdk-jammy
    
    # Port on which document signing gateway will be running. This must be same as in application.properties file
    
    EXPOSE 8081
    
    WORKDIR /app
    
    COPY document_signing_gateway-1.0.0.jar /app/
    
    COPY application.properties /app/
    
    COPY server.jks /app/
    
    COPY GoNotoKurrent.ttf /app/
    
    ENTRYPOINT ["java", "-Dspring.config.location=file:/app/application.properties", "-jar", "document_signing_gateway-1.0.0.jar"]
  4. Install Docker Engine on your machine. Afterward, build the docker image using the following command:
    docker build -t document_signing_gateway:1.0.0 .
  5. Run the container using the following command. It also creates volume for docker signing gateway API log file and port mapping as well.
    docker run -it -p 8081:8081 -v document_signing_gateway_logs:/logs document_signing_gateway:1.0.0
  6. Access the document signing gateway API using an application or POSTMAN tool.
Exit mobile version