php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20605 imap_open() requires /novalidate-cert on non-ssl hosts
Submitted: 2002-11-24 02:24 UTC Modified: 2002-11-24 17:14 UTC
From: loox at NO-SPAM dot rincon dot to Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: loox at NO-SPAM dot rincon dot to
New email:
PHP Version: OS:

 

 [2002-11-24 02:24 UTC] loox at NO-SPAM dot rincon dot to
There is a bug in imap_connect(), it requests a SSL certificate, even when not told to do so.

the code I use is:

    $host = "localhost:143";
    $mbox = @imap_open("{".$host."}INBOX",$user,$pass);
    if(!$mbox)
    {
        echo "error!!<br />n";
        echo imap_last_error();
        die();
    }

the error message is:

Certificate failure for localhost: unable to get local issuer certificate: /C=...

I'm using a self signed certificate for the IMAP SSL. But, the server I use in port 143 doesn't use SSL. (SSL IMAP is on port 993)

if i change the host line to:
    $host = "localhost:143/novalidate-cert";

it works.

It worked fine in 4.2.2, after the upgrade (4.2.3) the mail service was broken.



*******
the configuration:

'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '-- sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '-- libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/ com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-config-file-path=/etc' '-- enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline- optimization' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-gd' '-- with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '-- with-regex=system' '--with-ttf' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with- layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp' '--enable-magic- quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '- -enable-track-vars' '--enable-trans-sid' '--without-oci8' '--with-imap' '--with-imap-ssl' '-- with-kerberos=/usr/kerberos' '--with-ldap=/usr' '--with-mysql=/usr' '--with-apxs=/usr/ sbin/apxs'


c-client:
IMAP c-Client Version 2001 (2001a)
SSL Support enabled
Kerberos Support enabled

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-24 17:14 UTC] sniper@php.net
This is how c-client works. Not PHP bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 13:01:27 2024 UTC