Pular para o conteúdo principal

Visual Studio 2008 samples project

The Visual Studio 2008 samples project shows how to use Rest PKI together with Web PKI on a project using Visual Studio 2008. It is hosted on GitHub at:

https://github.com/LacunaSoftware/RestPkiSamples/tree/master/CSharp/VS2008

observação

Only use this project if you use an an older version of Visual Studio which cannot open the other .NET samples projects.

Running the project

  1. Download the project or clone the repository
  2. Open the project folder (CSharp\VS2008)
  3. Open the solution file (.sln) on Visual Studio
  4. Generate an API access token on the REST PKI website
  5. Paste your access token on the file web.config
  6. Run the solution. Make sure your system allows automatic Nuget package restore (if it doesn't, manually restore the packages).

Project map

This section lists where to find the relevant parts in each feature sample on the project.

Authentication with digital certificate

PAdES signature with file already on server

PAdES signature with file uploaded by user

Not planned for this project.

PAdES co-signature

Not planned for this project.

PAdES marks

This feature is demonstrated as an optional configuration on the PAdES signature with file already on server sample which by default starts commented out. To enable it, uncomment the following line on PadesSignatureController:

signatureStarter.PdfMarks.Add(PadesVisualElements.GetPdfMark(1));
dica

Try changing the argument to the GetPdfMark(int) method to see different PDF mark configurations

The relevant code is on the class PadesVisualElements, method GetPdfMark(int).

PAdES signature using server key

Not planned for this project.

PAdES signature without client communication

Not planned for this project.

Open/validate an existing PAdES signature

Not planned for this project.

Printer-friendly version

Not planned for this project.

CAdES signature with file already on server

CAdES signature with file uploaded by user

Not planned for this project.

CadES co-signature

Not planned for this project.

CAdES signature using server key

Not planned for this project.

Open/validate an existing CAdES signature

Not planned for this project.

XML signature of the entire document

Not planned for this project.

XML signature of an element

XAdES signature of an element

Not planned for this project.

Open/validate signature on an existing XML file

Not planned for this project.

Batch of PAdES signatures

Optimized batch of PAdES signatures

Not planned for this project.

Batch of CAdES signatures

Not planned for this project.

Batch of XML signatures of elements on the same document

Not planned for this project.