Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command line demostration app #20

Open
AdrianRodriguezLlave opened this issue Dec 3, 2020 · 8 comments
Open

Add a command line demostration app #20

AdrianRodriguezLlave opened this issue Dec 3, 2020 · 8 comments

Comments

@AdrianRodriguezLlave
Copy link

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

@bsanchezb
Copy link
Collaborator

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.

@AdrianRodriguezLlave
Copy link
Author

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.

@stepel
Copy link

stepel commented Feb 9, 2022

Hello,

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

@bsanchezb
Copy link
Collaborator

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.

@stepel
Copy link

stepel commented Feb 9, 2022

@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

@bsanchezb
Copy link
Collaborator

@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.

@stepel
Copy link

stepel commented Feb 10, 2022

@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 :)

@dagnelies
Copy link

dagnelies commented Apr 21, 2022

+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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants