Comments (8)
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.
from dss-demonstrations.
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.
from dss-demonstrations.
Hello,
how I can use standalone application but without user interface? Is there any place where I can find example ?
from dss-demonstrations.
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.
from dss-demonstrations.
@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
from dss-demonstrations.
@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.
from dss-demonstrations.
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 :)
from dss-demonstrations.
+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
from dss-demonstrations.
Related Issues (20)
- Error access illegal - dss-token HOT 1
- NexU not detected or not started ! Download the open source version of NexU (more info) HOT 10
- Is there a nice tutorial somewhere? HOT 2
- [Feature Request] Add a spring boot webapp alternative HOT 2
- Error when validating PDF file HOT 2
- REST API certificate chain error HOT 2
- VIsible signature via REST API HOT 3
- Disable logs from o.a.c.services.RestDocumentValidationServiceImpl HOT 2
- Is it possible to add custom certificates to DSS' list of trusted certificates? HOT 4
- Is it possible to create PAdES-B-LT and PAdES-B-LTA documents via REST API? HOT 4
- Configuration of the demonstration webapp's ip and port HOT 2
- Online refresh with https://www.ssi.gouv.fr/uploads/tl-fr.xml raises [Received fatal alert: protocol_version] HOT 5
- Standalone application for Mac OS HOT 3
- Use additional trusted certificates in DSS DemoWebapp HOT 3
- Visible Signature via RestAPI HOT 2
- SigningCertificateV2 error in DSS verification HOT 3
- PDF_NOT_ETSI error while trying to verify a signature with DSS Validation Tool HOT 4
- Please teach how to create the jar file of dss-spi-x509-aia, which is not included in central repository HOT 2
- Please teach how to create the jar file of dss-spi-x509-aia, which is not included in central repository HOT 1
- DSS demonstration tool not recognising OCSP response for signing cert HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dss-demonstrations.