[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IReadOnlySignatureDetails.SignatureCertificate

SignatureCertificate Property

SignatureCertificate

Gets the certificate (private key removed) that was used to sign this workbook.

Use this property to read the public certificate stored in the signature metadata returned by Details. The returned certificate does not include the private key material.

Declaration
X509Certificate2 SignatureCertificate { get; }
ReadOnly Property SignatureCertificate As X509Certificate2
Examples
workbook.Open(GetSignedWorkbookStream());
ISignature signature = workbook.Signatures[0];
IReadOnlySignatureDetails details = signature.Details;
X509Certificate certificate = details.SignatureCertificate;