dss-demonstrations icon indicating copy to clipboard operation
dss-demonstrations copied to clipboard

Add a command line demostration app

Open AdrianRodriguezLlave opened this issue 5 years ago • 8 comments

Adding a new command line demostration app could help developers and industry. Thank you.

AdrianRodriguezLlave avatar Dec 03 '20 16:12 AdrianRodriguezLlave

Hello,

Advanced digital signatures are quite complex and DSS creates them in 3 steps (see documentation). Therefore, it is not a good idea to provide a command-line interface for signatures creations, as it will be not very user-friendly. You can try to use a standalone application, if you find the webApplication not comfortable.

Best regards, Aleksandr.

bsanchezb avatar Nov 08 '21 10:11 bsanchezb

Hello @bsanchezb,

You can use the command line interface, the same way you use an API. This 3 steps can be called by another application or a script. With command line interface you don't need to deploy an API, you can use the signature app the same way you use the standalone application but without user interface. With a command line tool, another app can sign or verify signatures from pdf, xml, ... and you don't need to install Apache or other stuff to deploy a Web API.

I found it very usefull, because i was using a similar application called "clienteafirma" from spanish goverment but this tool do not have updated the signatures to new versions: https://github.com/ctt-gob-es/clienteafirma https://github.com/ctt-gob-es/clienteafirma/tree/master/afirma-simple

An usecase: Suposse you need to do a batch signature and make another thing after sign those document. With a command line tool you can make a script to do all this process. Of couse you can call to the API, but sometine deploy an API is too much for a simple operation.

Thank you for the great work.

AdrianRodriguezLlave avatar Nov 08 '21 11:11 AdrianRodriguezLlave

Hello,

how I can use standalone application but without user interface? Is there any place where I can find example ?

stepel avatar Feb 09 '22 10:02 stepel

Hello @stepel ,

Perhaps, instead of standalone application or a web application, you may use the source code of the library directly: https://github.com/esig/dss. You can find some code examples in the cookbook. As well as check out the documentation: https://dss.nowina.lu/doc/dss-documentation.html

Best regards, Aleksandr.

bsanchezb avatar Feb 09 '22 14:02 bsanchezb

@bsanchezb, thanks for your advice. I will check it but generally I am not java developer so I need to spend some time to know better your code.
I am preparing something in different language (Delphi) and two other libraries doesn't sign my xml in a good way. Only your standalone application does it properly :) Maybe this is a good way to try to make little simple application to sign what I need using your source code. Thanks

stepel avatar Feb 09 '22 17:02 stepel

@stepel , then you could try to use REST or SOAP API service for signature creation/validation. As a demo, they are provided within dss-demo-webapp with code examples in integration-tests. Please also have a look on Postman and SoapUI application examples.

Additional information about REST and SOAP services you can also find in the documentation, I have provided you with a link above.

Best regards, Aleksandr.

bsanchezb avatar Feb 10 '22 07:02 bsanchezb

@bsanchezb

Thank you I saw it before but I have made very simple application already in Java using dss library to sign what I need. Thank you for your help :)

stepel avatar Feb 10 '22 09:02 stepel

+1

A command line example would be great to:

  • have something you can try out directly out of the box (since all web demos rely on the outdated unsupported NexU)
  • a concise way to illustrate how to exactly use this framework/library
  • a way to easely integrate it in non-java programs

dagnelies avatar Apr 21 '22 07:04 dagnelies