We are using Aspose.PDF v. 19.9.0
We are getting exception while executing
Aspose.Pdf.Facades.PdfFileSignature.Save()
#=zScqqsz$X9TnI4nJ8UHfuKMBLFAjvHJulSVJ4lO8=
HResult=0x80131500
Message=Timestamp validation failed, see inner exception for details
Source=Aspose.Pdf
StackTrace:
at #=zhdwOcYagvydi1QrSzuMkfi6Uab22IEMRKg==.#=zkIMQLTs=.#=z6usfUtc=(Byte[] #=zDbQvZ20=, #=zp65$JdKj7p5g2OK7W8C5qXyd8poSEdpl5x4BAVM= #=zuZ1aO18=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD #=zVy4ufqUXqzFA, TimestampSettings #=zWojgFtK5Drcv, Boolean #=zNqFOBCY=, X509Certificate2 #=zI$RjxMrJjQrU)
at #=zhdwOcYagvydi1QrSzuMkfi6Uab22IEMRKg==.#=zkIMQLTs=.#=zhbuFI48=(Byte[] #=zDbQvZ20=, #=zp65$JdKj7p5g2OK7W8C5qXyd8poSEdpl5x4BAVM= #=zuZ1aO18=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD #=zVy4ufqUXqzFA, TimestampSettings #=zWojgFtK5Drcv, Boolean #=zNqFOBCY=)
at #=zhdwOcYagvydi1QrSzuMkfi6Uab22IEMRKg==.#=zkIMQLTs=.#=zhbuFI48=(Byte[] #=zDbQvZ20=, Stream #=zDwgrxZBnr0XC, String #=z2bQ7pz0=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD #=zVy4ufqUXqzFA, TimestampSettings #=zWojgFtK5Drcv, Boolean #=zNqFOBCY=)
at #=zhdwOcYagvydi1QrSzuMkfi6Uab22IEMRKg==.#=zkIMQLTs=.#=zhbuFI48=(Byte[] #=zDbQvZ20=, Stream #=zDwgrxZBnr0XC, String #=z2bQ7pz0=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD #=zVy4ufqUXqzFA, TimestampSettings #=zWojgFtK5Drcv)
at #=zEk2IRZuW1zZ_U$4HC3jNrUvwG1Gz.#=zhbuFI48=(String #=zzkLBjVY=, #=z5uPK7AABS5WOK5e5SXO9DIIj4CwuvnPpYg== #=zFCA7FbA=, #=zvHAkhUtk1XfW4H89bQDiDTLM7ISHHzw1KA== #=zNIY$WC0=, Stream #=zuZ1aO18=, String #=zo8ZCmK0=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD #=zVy4ufqUXqzFA, TimestampSettings #=zWojgFtK5Drcv, X509Certificate2 #=zI$RjxMrJjQrU)
at #=zEk2IRZuW1zZ_U$4HC3jNrUvwG1Gz.#=zhbuFI48=(String #=zzkLBjVY=, #=z5uPK7AABS5WOK5e5SXO9DIIj4CwuvnPpYg== #=zFCA7FbA=, #=zvHAkhUtk1XfW4H89bQDiDTLM7ISHHzw1KA== #=zNIY$WC0=, Stream #=zuZ1aO18=, String #=zo8ZCmK0=)
at Aspose.Pdf.Forms.Signature.#=zhbuFI48=(String #=zzkLBjVY=, Stream #=zuZ1aO18=, String #=zo8ZCmK0=)
at Aspose.Pdf.Forms.SignatureField.Sign(Signature signature, Stream pfx, String pass)
at Aspose.Pdf.Forms.SignatureField.Sign(Signature signature)
at Aspose.Pdf.Facades.PdfFileSignature.#=zJUktKo5llvDT(Stream #=zyXPGQKRAxLv_, Stream #=zKKmv7q1iSK9V, String #=z2bQ7pz0=)
at Aspose.Pdf.Facades.PdfFileSignature.Save(Stream outputStream)
at EY.TAX.eTFV.Common.PDFHandler.DoDigitalSign(Stream templatefile, IDictionary`2 signvalues, String webRootPath, String signDate, Boolean isAffidavit) in C:\App\Repos\eTFV\EY.TAX.eTFV.Common\PDFHandler.cs:line 160
This exception was originally thrown at this call stack:
#=zpUYnJjujKKxzZuY$rMGvCA4ZNoGJeVxC7Tz3$0U=.#=zpUYnJjujKKxzZuY$rMGvCA4ZNoGJeVxC7Tz3$0U=(#=z2NGdkvUKxDHC7r2A6C_cJ1p_ln$glMUsUw==)
#=zCK7U1xQ9VgyRlhrpC$AUXFmt2ALWty8Lyg2x2B0bOvc7.#=zCK7U1xQ9VgyRlhrpC$AUXFmt2ALWty8Lyg2x2B0bOvc7(#=zP9LIG9zYynQPZ81n8wG3CKyRFYGmrMd0jlMi_7_LZ6Bv2k6qWg==)
#=zCK7U1xQ9VgyRlhrpC$AUXFmt2ALWty8Lyg2x2B0bOvc7.#=zCK7U1xQ9VgyRlhrpC$AUXFmt2ALWty8Lyg2x2B0bOvc7(System.IO.Stream)
#=z7rqwLjr4lM_pmPi2qsPGOi1YZ$u3u8K7urJmgyg=.#=zF4phUBc=(byte[])
#=zhdwOcYagvydi1QrSzuMkfi6Uab22IEMRKg==.#=zkIMQLTs=.#=z6usfUtc=(byte[], #=zp65$JdKj7p5g2OK7W8C5qXyd8poSEdpl5x4BAVM=, #=zRNO80ikPHdBmYNGv1Ose24dvD6uD, Aspose.Pdf.TimestampSettings, bool, System.Security.Cryptography.X509Certificates.X509Certificate2)
Inner Exception 1:
#=zQ0kY3vR848_sgV8Ggw1MeGd6N24Vv6B4SpNqTmI=: Index was outside the bounds of the array.
aspose connect to http://timestamp.digicert.com
and the exception message is saying something about the timestamp