I've just been affected by this on a Debian 8 install too. It seems the issue is related to the version of PHP > 5.6 which now checks SSL certificates are valid by default - if the CN of the certificate doesn't match the connection string used by Roundcube, the connection will fail.
Setting the Roundcube config default host connection string
$config['default_host'] = 'ssl://hostname';
so that hostname matches the CN in the SSL certificate solves the problem.
I've just been affected by this on a Debian 8 install too. It seems the issue is related to the version of PHP > 5.6 which now checks SSL certificates are valid by default - if the CN of the certificate doesn't match the connection string used by Roundcube, the connection will fail.
Setting the Roundcube config default host connection string
$config[ 'default_ host'] = 'ssl://hostname';
so that hostname matches the CN in the SSL certificate solves the problem.
Also see here: https:/ /bbs.archlinux. org/viewtopic. php?id= 187063