Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Unable to add entries with command line elog.exe with SSL, posted by Antonio Bulgheroni on Fri Jun 28 17:00:10 2019 
    icon2.gif   Re: Unable to add entries with command line elog.exe with SSL, posted by Antonio Bulgheroni on Mon Aug 12 13:11:54 2019 
       icon2.gif   Re: Unable to add entries with command line elog.exe with SSL, posted by Andreas Luedeke on Wed Aug 14 13:25:15 2019 
          icon2.gif   Re: Unable to add entries with command line elog.exe with SSL, posted by Antonio Bulgheroni on Wed Aug 14 18:36:17 2019 
             icon2.gif   Re: Unable to add entries with command line elog.exe with SSL, posted by Antonio Bulgheroni on Thu Aug 15 19:00:12 2019 
Message ID: 69002     Entry time: Thu Aug 15 19:00:12 2019     In reply to: 68999
Icon: Reply  Author: Antonio Bulgheroni  Author Email: antonio.bulgheroni@gmail.com 
Category: Question  OS: Windows  ELOG Version: 3.1.4 
Subject: Re: Unable to add entries with command line elog.exe with SSL 

So as promised, I add some more information. 

Unfortunately changing the port where the server is listening did not make any change. The situation is still the same. If I try directly from the server, I get a warning about the fake certificate and if I do it from elsewhere, I get the error that the server is not running SSL. 

I had a look at the source code of elog.c and found the point where the error is produced. in order to produce this message, the ssl_connect should be returning -1 and this is only possible in two cases: 

   if (SSL_connect(*ssl_con) <= 0)
      return -1;
   
   cert = SSL_get_peer_certificate(*ssl_con);
   if (cert == NULL)
      return -1;

So, in the first case, it means that the SSL connection failed completly. In the second case, the peer certificate is invalid. 

Is it possible to discriminate between the two, for example changing the return value? Unfortunately I don't have a windows computer with development tools. So it would be great if you could prepare an executable for me with this small change. 

Thanks in advance for your help,

cheers,

 

ELOG V3.1.5-fe60aaf