AdES icon indicating copy to clipboard operation
AdES copied to clipboard

Cannot find ASNC folder files

Open guilhermemntt opened this issue 5 years ago • 11 comments

Hello, I cannot find the ASNC folder included files in the solution. Can you provide them?

guilhermemntt avatar Nov 21 '19 22:11 guilhermemntt

The project includes a binary copy of the ASN.1 compiler if that is what you are looking for.

WindowsNT avatar Nov 21 '19 22:11 WindowsNT

Yes! I've bypassed the issue setting some properties in my Visual Studio. Now I'm trying to sign a pdf file multiple times using CAdES, but some third parties verification softwares are recognizing five signs when I'm signing twice, for example, and sixteen when I'm signing three times. Do you have any idea of what is happening?

guilhermemntt avatar Dec 02 '19 19:12 guilhermemntt

Send me the PDF you are trying to sign.

WindowsNT avatar Dec 02 '19 19:12 WindowsNT

I will take a look, thanks.

WindowsNT avatar Dec 02 '19 19:12 WindowsNT

Any news? Wondering why the PAdES signing doesn't have this issue.

guilhermemntt avatar Dec 09 '19 12:12 guilhermemntt

What do you mean the PAdES signing doesn't have this issue. PAdES uses CAdES. Or you meant that you are trying to with the PDF as a binary?

WindowsNT avatar Dec 09 '19 18:12 WindowsNT

Yes, I've seen your code. I've tried to sign as binary using CAdES but this problem always occurs when signing over a already signed pdf. When I use PAdES (I don't know why) the problem doesn't happen and my verification software recognizes the right number of consecutive signatures.

guilhermemntt avatar Dec 09 '19 18:12 guilhermemntt

PDF files can techically be signed with plain CAdES (as any file), but the result is not a PDF file and will not be recognized by PDF software. Generally, CAdES signatures only have meaning for software that knows the existance of CAdES - which is not the case for PDF.

In short, you have to always use PAdES.

WindowsNT avatar Dec 09 '19 18:12 WindowsNT

I understand, but my pdf viewer still opens my CAdES signed pdf. The problem is the number of signatures identified by the verification software when I sign multiple times. Do you use third party CAdES verification softwares with witch you can test this issue?

guilhermemntt avatar Dec 09 '19 19:12 guilhermemntt

I'm currently working at adding consecutive signatures to already signed messages using CryptMsgControl function. Hope send a PR soon. By now, I have the code working, although I prefer refactor some things before send to the repo.

guilhermemntt avatar Mar 10 '20 03:03 guilhermemntt