del,
I noticed the upgrade to 2014.10 has enabled strict SSL verification in general, but I still do not know what exactly upgraded to cause that. My guess is MailCleaner's code isn't at fault, but rather a system package (openssl) upgraded and has introduced strict validation. I wish I could turn it off, or at least configure MC to allow certificate name mismatches. See my post about the SMTP connector breaking, which is still not fixed or acknowledged by anyone else:
viewtopic.php?p=8763#p8763. I think our issues are related. I worked around the issue by configuring the correct FQDN for domains that actually login to my MC.
You could edit out the HTTPS portion of the URL in the SOAP code. I haven't tried this, but I went searching for a solution to try to help you out. I want to try the API soon, but it definitely looks broken based your reports and the code--for anyone using HTTPS with MC at least.
1. Edit /usr/mailcleaner/www/api/application/api/controllers/SoapController.php.
2. Comment out the line (or entire
if block) that initializes the URL to "https://":
Code: Select all
public function init()
{
Zend_Registry::set('soap', true);
$this->_url = 'http://';
if (isset($_SERVER['HTTPS'])) {
// $this->_url = 'https://';
}
$this->_url .= 'localhost'.":".$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI']."?wsdl";
$this->_options{'uri'} = $this->_url;
require_once('SoapInterface.php');
}
The CVS log doesn't indicate this code has changed since it was first introduced to the Community Edition, which is further evidence a system library upgrade is the origin of the issue.
Alternatively, you could also try replacing
'localhost' with your SSL common name, although it wouldn't be ideal to hardcode your hostname there. Non-SSL on the localhost is fine, IMO.