Re: ssl with pop3

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

"Alfredo Panu" <alfred…@tiscalinet.it> wrote in message
news:B6A3D6FFD4B2E240alfred…@tiscalinet.it...
> 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;

Ciaran

Replies

None

In response to

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