eideasy / eideasy-browser-js

0 stars 0 forks source link

Incorporating timestamped signature from hwcrypto in ASICE container (without access private key) #9

Open DigitalLeaves opened 1 year ago

DigitalLeaves commented 1 year ago

Is your feature request related to a problem? Please describe.

First of all, thanks for building and maintaining this amazing library.

I want to add timestamped signatures to an ASIC-E container. I am using eideasy-browser-js to create the containers, and I can create a successful signature (SHA-256 for example) using hwcrypto.js.

What I want is to know how to convert that signature into a valid xAdES signature to be inserted into the container. We cannot use xADES with eideasy directly because the key is (rightfully) not exposed when signing requests.

Describe the solution you'd like

We would like to be able to, once we have the container, add a timestamped signature generated using hwcrypto from the user (ID-card) into the container so it is signed and timestamped properly.

Describe alternatives you've considered

We have tried to enter the signature as it is received by hwcrypto without success.

Additional context

None.

matsjoonas commented 1 year ago

I'm glad to hear that you've found this library useful!

What I want is to know how to convert that signature into a valid xAdES signature to be inserted into the container. We cannot use xADES with eideasy directly because the key is (rightfully) not exposed when signing requests.

It would be great if you could describe your use case in more detail. What type of smart-card are you using to create the signature?