ClientCert Property
Contains information regarding active client
certificate.
Active client certificate is used to authenticate the client once connection
occurs.
By default there is no any certificate selected (i.e. anonymous certificate
is active). Many but not all mail servers accept anonymous certificates. However,
you can always select non-anonymous client certificate from the store using
SelectClientCert method.
Value Type: | MailBee.CertInfo | |
Parameters: | None | |
Remarks: | This property is read-only |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.SMTP") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.SMTP") 'In ASP use Response.Write instead of MsgBox Mailer.EnableLogging = True Mailer.LogFilePath = "C:\Temp\smtp_log.txt" Mailer.ClearLog Mailer.LicenseKey = "put your license key here" ' Set SSL connection over STARTTLS command Mailer.SSL.Enabled = True Mailer.SSL.UseStartTLS = True ' It's assumed "MY" system store includes certificate with friendly name "Administrator" Mailer.SSL.SelectClientCert("MY", 0, "", "", "Administrator") ' select active certificate ' display name of the authority which issued the certificate to the client MsgBox Mailer.SSL.ClientCert.IssuedBy
See Also:
CertInfo Object
SelectClientCert Method
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.