Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static void Main(string[] args)
IPdfExternalSigner externalSignature = new ExternalSigner("SHA1");
// Add public certificates
List<X509Certificate2> certificates = new List<X509Certificate2>();
certificates.Add(new X509Certificate2(Path.GetFullPath(@"../../../Data/PDF.pfx"), "password123"));
certificates.Add(new X509Certificate2(Path.GetFullPath(@"Data/PDF.pfx"), "password123"));
signature.AddExternalSigner(externalSignature, certificates, null);

//Save the PDF document
Expand All @@ -49,7 +49,7 @@ public ExternalSigner(string hashAlgorithm)
public byte[] Sign(byte[] message, out byte[] timeStampResponse)
{
timeStampResponse = null;
X509Certificate2 digitalID = new X509Certificate2(Path.GetFullPath(@"../../../Data/PDF.pfx"), "password123");
X509Certificate2 digitalID = new X509Certificate2(Path.GetFullPath(@"Data/PDF.pfx"), "password123");

if (digitalID.PrivateKey is RSACryptoServiceProvider rsaProvider)
{
Expand Down
Loading