Dart Smtp, Pop, Imap Controls
Certificate Property
Description
Certificate Object to use when authenticating to the remote host.
Property type
Read-write property
Syntax
Visual Basic
Public Property Certificate As ICertificate
Remarks
This property is typically unused. If the server wants the client to authenticate and this property has not been set, then the Certificate event fires to allow you to set a certificate on demand.
Example
Dim Store As New CertificateStore
Dim Certificate As Certificate
'Get the certificates in "MY" certificate store located in the
'Local Machine registry key.
Store.Name = "MY"
Store.Location = locationLocalMachine
'Must use Refresh to populate Store.Certificates
Store.Refresh
MsgBox "There are " & Store.Certificates.Count & " certificates."
'Set the certificate to the one for "DartServer"
For Each Certificate In Store.Certificates
	If Certificate.IssuedTo = "DartServer" Then
		SecureTcp1.Certificate = Certificate
		Exit For
	End If
Next
Alternatively, you can use the Find method to set the certificate:
Dim Store As New CertificateStore
'Get the desired certificate
SecureTcp1.Certificate = Store.Find("ROOT", locationLocalMachine, g_SavedIssuedBy, g_SavedSerialNumber)
See Also

Imap Object  | Imap Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic