LumiSoft Mail Server User API
SwitchToSSL Method (certificate)
Namespaces > LumiSoft.Net > SocketEx > SwitchToSSL(X509Certificate)
Switches socket to SSL mode. Throws excpetion is socket is already in SSL mode.
Syntax

C# | Visual Basic | Managed C++

    public void SwitchToSSL (
    	X509Certificate certificate
    )

    Public Sub SwitchToSSL ( _
    	certificate As X509Certificate _
    )

    public:
    void SwitchToSSL (
    	X509Certificate^ certificate
    )

Parameters

certificate (X509Certificate)
  Certificate to use for SSL.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)