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
Note
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
- Download the project or clone the repository
- Open the project folder (
CSharp\VS2008
) - Open the solution file (.sln) on Visual Studio
- Generate an API access token on the REST PKI website
- Paste your access token on the file
web.config
- 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
- Web Forms:
- JavaScript: signature-form.js
PAdES signature with file already on server
- Web Forms:
- JavaScript: signature-form.js
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));
Tip
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
- Web Forms:
- JavaScript: signature-form.js
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
- Web Forms:
- JavaScript: signature-form.js
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
- Web Form: BatchSignature.aspx
- JavaScript: batch-signature-form.js
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.