SignerCert Property
Gets the CertInfo object which contains the information about the certificate of the entity which signed the message assigned to the SMIME object.
Value Type: | CertInfo Object | |
Parameters: | None | |
Remarks: | The information about the signer's certificate is available only for the verified messages. The developer can use the Verified property to check if the message is verified and the Verify or DecryptAndVerify method to verify the message. |
Usage example:
' This example loads the message from file and if it's signed - shows to whom this certificate was issued. Dim objMsg, objSMIME 'Using visual basic to create object Set objMsg = CreateObject("MailBee.Message") Set objSMIME = CreateObject("MailBee.SMIME") 'Using ASP to create object 'Set objSMIME = Server.CreateObject("MailBee.SMIME") 'In ASP use Response.Write instead of MsgBox objSMIME.LicenseKey = "put your license key here" ' Load E-mail message from file objMsg.ImportFromFile "mail_src.eml" ' Set message for SMIME Set objSMIME.Message = objMsg ' If message signed, verify message and obtain information about sender certificate if objSMIME.Signed Then objSMIME.Verify ' Obtain information about sender MsgBox (objSMIME.SignerCert.IssuedTo) End If
See Also:
SenderCert Property, Verify Method, DecryptAndVerify Method, CertInfo Object
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.