WindowsNT / AdES

An Implementation of CAdES, XAdES, PAdES and ASiC for Windows in C++
MIT License
34 stars 17 forks source link

Cannot find ASNC folder files #1

Open guilhermemntt opened 4 years ago

guilhermemntt commented 4 years ago

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

WindowsNT commented 4 years ago

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

guilhermemntt commented 4 years ago

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?

WindowsNT commented 4 years ago

Send me the PDF you are trying to sign.

guilhermemntt commented 4 years ago

A17FlightPlan.pdf

WindowsNT commented 4 years ago

I will take a look, thanks.

guilhermemntt commented 4 years ago

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

WindowsNT commented 4 years ago

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?

guilhermemntt commented 4 years ago

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.

WindowsNT commented 4 years ago

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.

guilhermemntt commented 4 years ago

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 commented 4 years ago

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.