Skip to content

Commit 2164c05

Browse files
committed
fix: add timestamp to signed attribues
1 parent 3b98026 commit 2164c05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/foundation/src/PDFsharp/src/PdfSharp/Pdf.Signatures/DefaultSigner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public byte[] GetSignedCms(Stream stream, int pdfVersion, byte[]? timestampToken
3535
if (timestampToken != null)
3636
{
3737
AsnEncodedData timestampTokenAsnEncodedData = new AsnEncodedData(new Oid("1.2.840.113549.1.9.16.2.14"), timestampToken);
38-
signer.UnsignedAttributes.Add(new CryptographicAttributeObject(new Oid("1.2.840.113549.1.9.16.2.14"), new AsnEncodedDataCollection(timestampTokenAsnEncodedData)));
38+
signer.SignedAttributes.Add(new CryptographicAttributeObject(new Oid("1.2.840.113549.1.9.16.2.14"), new AsnEncodedDataCollection(timestampTokenAsnEncodedData)));
3939
}
4040

4141
signedCms.ComputeSignature(signer, true);

0 commit comments

Comments
 (0)