Starting with GroupDocs.Signature for .NET 26.9, Sign also throws GroupDocsSignatureException when the signing certificate has expired or is not valid yet, and nothing is signed or saved. See “Certificates outside their validity period” in Pdf Digitally signing for the message and for the AllowExpired and AllowNotYetValid properties that allow such a certificate.
Sign also throws when the time-stamp authority set in PdfDigitalSignature.TimeStamp cannot be reached or rejects the request. See Sign PDF document with a time stamp.
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples: