Re: ssl with pop3

Giganews Newsgroups
Subject: Re: ssl with pop3
Posted by:  Ciaran Costelloe (ccostell…
Date: Thu, 4 Nov 2004

"Alfredo Panu" <alfred…> wrote in message
> how to enable  Secure Socket Layer (SSL) support for the connection with
> pop3?
> Any hints greatly appreciated.

The following is for TIdHTTP, I assume it is the same for POP:

    TheHttp := TIdHttp.Create;
    TheHttp.HandleRedirects := False;
    TheSSLIOHandler := TIdSSLIOHandlerSocketOpenSSL.Create;
    TheSSLIOHandler.SSLOptions.Mode := sslmUnassigned;
    TheSSLIOHandler.OnGetPassword := SSLIOHandlerGetPassword;
    TheSSLIOHandler.OnVerifyPeer := nil;
    TheSSLIOHandler.SSLOptions.VerifyMode := [];
    TheSSLIOHandler.SSLOptions.RootCertFile := 'C:\Doh.pem';
    TheSSLIOHandler.SSLOptions.CertFile := 'C:\Doh2.pem';
    TheSSLIOHandler.SSLOptions.KeyFile := 'C:\Doh3.pem';
    TheSSLIOHandler.SSLOptions.Method := sslvSSLv23;
    TheSSLIOHandler.SSLOptions.VerifyDepth := 2;
    TheHttp.IOHandler := TheSSLIOHandler;




In response to

ssl with pop3 posted by Alfredo Panu on Wed, 3 Nov 2004