From 00f95b9e1854398bce727aba0a023c44dbc9a96a Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Sun, 17 Dec 2023 11:16:04 -0800 Subject: [PATCH] fix value for signed data version in ts response Signed-off-by: Brian DeHamer --- timestamp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/timestamp.go b/timestamp.go index 9e6da2d..e4f2690 100644 --- a/timestamp.go +++ b/timestamp.go @@ -632,6 +632,7 @@ func (t *Timestamp) generateSignedData(tstInfo []byte, signer crypto.Signer, cer } signedData.SetDigestAlgorithm(alg) signedData.SetContentType(asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 16, 1, 4}) + signedData.GetSignedData().Version = 3 signingCertV2Bytes, err := t.populateSigningCertificateV2Ext(certificate) if err != nil {