Miroshin Stepan

Results 356 comments of Miroshin Stepan

Do you need xmldsig?

xml signature without QualifyingProperties is xmldsig xml signature with QualifyingProperties is xades

just try to use xmldsigjs instead of xadesjs. It has the same API

Looks like it's IE11 limitation. It throws an exception on appending a signature element to the XML document. ```js // SignedXml.toString doc.appendChild(sig); ``` As I can see from [this](https://stackoverflow.com/questions/44852661/ie-11-is-ignoring-appendchild-for-dynamically-generated-html-pages) StackOverflow...

I updated your code a bit ```diff }) - .then(function() { - return signedXml.toString(); + .then(function(signature) { + return new XMLSerializer().serializeToString(signature.GetXml()); }); } ``` ![image](https://user-images.githubusercontent.com/7333669/80502779-b80b0700-8979-11ea-91d9-bf6e564f8c59.png)

I found a solution ```js var xmlDoc = new DOMParser().parseFromString(xmlString, "application/xml"); var xmlSig = new DOMParser().parseFromString(signedDocument, "application/xml"); xmlDoc.documentElement.appendChild(xmlSig.documentElement); console.log(new XMLSerializer().serializeToString(xmlDoc)); ``` ![image](https://user-images.githubusercontent.com/7333669/80574928-6612c180-8a0b-11ea-9b69-d38fc106eca4.png)

It fixes IE11 limitation only but lib works fine for other browsers

Here is a simple example of XAdES-T creation. ### TypeScript ```ts const crypto = new Crypto(); const alg: globalThis.RsaHashedKeyGenParams = { name: "RSASSA-PKCS1-v1_5", hash: "SHA-256", publicExponent: new Uint8Array([1, 0, 1]),...

It's possible that your token doesn't support `C_CopyObject` function. As I can see from the logs it throws an exception on a key coping to your token.