rouxemmanuel / DigitalSigning

Digital Signing Alfresco plugin
45 stars 39 forks source link

Not able to sign document getting error. #54

Open kranthi23 opened 6 years ago

kranthi23 commented 6 years ago

Error during document signing : {0}

image

if I uncheck Transform PDF in PDF/A-1 before signing: getting error like this Error during document signing : class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package image

No error is showing in alfresco logs files.

I am using below commands to create the key.p12: keytool -genkey -keyalg RSA -alias -keystore keystore12.p12 -storetype pkcs12 -storepass -validity 360 -keysize 2048

Thanks, KK.

rouxemmanuel commented 6 years ago

Hi,

Can you take a look to the response of REST URL called (by activating developper mode (F12 on chrome and Firefox)).

Regards, Emmanuel

kranthi23 commented 6 years ago

Hi Emmanuel,

There also it doesn't showing error. image

And also I am attaching my logs:

alfrescotomcat-1-stdout.2018-04-13.log

rouxemmanuel commented 6 years ago

Can you take a look in the "Network" tab and then filter by "XHR" queries.

kranthi23 commented 6 years ago

I checked it there in sign image there response getting as the error.

rouxemmanuel commented 6 years ago

Can you give me your self signed certificate and the password ?

kranthi23 commented 6 years ago

Please find attachment : kranthi.zip

password : kranthi

kranthi23 commented 6 years ago

Hi Emmanuel,

Have you checked with those certificate and password ?? if not please check it once....

I am using Alfresco CE 5.2 version.This addon will workf for that version.

Is this way to create the self signed signature using command :keytool -genkey -keyalg RSA -alias kranthi -keystore keystore12.p12 -storetype pkcs12 -storepass kranthi -validity 360 -keysize 2048

kranthi23 commented 6 years ago

In webscript sign.post.js is calling digitalSigning.sign(parameters); there it is not returning anything from digitalSigning.service.SigningService java class. In that class with Error during document signing : class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package in signPDFFile method ....... please check it once

Dnhatsave commented 5 years ago

Hi everyone,

I have the same problem on Alfresco CE 5.2, any workaround??

iurilimamarques commented 4 years ago

Hi @Dnhatsave ,

Did you solve this problem?

Dnhatsave commented 4 years ago

@iurilimamarques checkout this link it solve my problem https://stackoverflow.com/questions/29955410/how-do-i-fix-stackoverflowerror-in-org-apache-catalina-startup-contextconfig-pop

iurilimamarques commented 4 years ago

Hi @Dnhatsave ,

I coudn't understand where I can find the file that I have to insert in "org.apache.catalina.startup.ContextConfig.jarsToSkip". Have you edited any java file? Could you help me please?

Dnhatsave commented 4 years ago

Hi @iurilimamarques sorry for the delay,

as explained on this link you found this file on your Tomcat server at catalina.properties

keep me updated about your progress

iurilimamarques commented 4 years ago

Hi @Dnhatsave ,

Thank you very much for the help, the problem was I had three file from bouncycastle, so I deleted two files and it worked, but I have another problem, when I check the 'label.transformInPdfA:' I get this error: 'Error during document signing : Invalid ICC profile'.

Could you help me with this error, please?

Dnhatsave commented 4 years ago

Can you share your complete log file with this error? what is a format of document you try to sign ?

iurilimamarques commented 4 years ago

I uploaded a .pdf and my log file is attached but I am not sure it's the correct log file, I get this log file from C:/alfresco-comunnity/. alfresco.txt

iurilimamarques commented 4 years ago

Hi @Dnhatsave ,

I got sign the document without check the 'label.transformInPdfA', do you know what it's for?

Thank you for all.

Dnhatsave commented 4 years ago

well done, its seems a bug to me, the conversion is not working.