Roundcube: Difference between revisions

From Anthony Pastor Wiki Notes - Verba volant, scripta manent
Jump to navigation Jump to search
(Created page with "Recently i've upgraded to PHP5.6. After that when i tried to login on my Roundcube Webmail i had this error message: <syntaxhighlight lang="bash"> anthonypastor roundcube: <2...")
 
No edit summary
Line 6: Line 6:
</syntaxhighlight>
</syntaxhighlight>


After some Googling i read that PHP 5.6.X bring a new policy: <b>SSL & TLS: Peer Certificates and Hostnames Verified by Default</b>.
After some Googling i read that PHP 5.6.X bring a new policy: <b>Stream wrappers now verify peer certificates and host names by default when using SSL/TLS </b>. ([http://php.net/manual/fr/migration56.openssl.php]).
 
This is the reason why this error message highlight my screen.
 
To drop away this error we cand revert to the previous behavior thanks to:
 
 
<syntaxhighlight lang="bash">
$config['imap_conn_options'] = array(
  'ssl' => array(
        'verify_peer'      => false,
        'verify_peer_name'  => false,
        'allow_self_signed' => true,
  ),
);
 
$config['smtp_conn_options'] = array(
  'ssl' => array(
        'verify_peer'      => false,
        'verify_peer_name'  => false,
        'allow_self_signed' => true,
  ),
);
 
</syntaxhighlight>

Revision as of 23:34, 27 April 2015

Recently i've upgraded to PHP5.6. After that when i tried to login on my Roundcube Webmail i had this error message:

anthonypastor roundcube: <211g2b4d> IMAP Error: Login failed for contact from 81.153.32.136. Could not connect to ssl://localhost:993: Unknown reason in /home/sites/roundcube/www/program/lib/Roundcube/rcube_imap.php

After some Googling i read that PHP 5.6.X bring a new policy: Stream wrappers now verify peer certificates and host names by default when using SSL/TLS ¶. ([1]).

This is the reason why this error message highlight my screen.

To drop away this error we cand revert to the previous behavior thanks to:


$config['imap_conn_options'] = array(
  'ssl' => array(
        'verify_peer'       => false,
        'verify_peer_name'  => false,
        'allow_self_signed' => true,
  ),
);

$config['smtp_conn_options'] = array(
  'ssl' => array(
        'verify_peer'       => false,
        'verify_peer_name'  => false,
        'allow_self_signed' => true,
  ),
);