ID:               26040
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at hyperion dot ath dot cx
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: FreeBSD 5.1p10
 PHP Version:      4CVS-2003-10-30 (stable)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

TLS and SSL are names for two "similar" kinds of application level
crypto.  Opening a socket with tls:// or ssl:// via fsockopen opens the
socket with crypto turned on.  tls:// does not perform STARTTLS
negotiation as that is protocol specific - how can PHP guess which
protocol you are talking? :-)

Currently, there is no way (from userspace) to open a clear text tcp://
socket and then switch on tls:// mode.  This is a feature that will be
present in PHP 5.


Previous Comments:
------------------------------------------------------------------------

[2003-10-30 09:18:01] php at hyperion dot ath dot cx

Description:
------------
tls:// doesn't work on Port 143 as it should.
It works like ssl:// on Port 993 only. This is wrong, and it seems TLS
doesnt really initiate STARTTLS but normal SSL.
tls:// should work on Port 143.

Tested this on 4.3.4RC3 and 2003-10-30stable.


Reproduce code:
---------------
dumb fsockopen=("tls://bla",143);
will return  fsockopen(): SSL operation failed with code 1. OpenSSL
Error messages: error:1408F10B:SSL routines:func(143):reason(267)

Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: SSL
handshake/connection failed

Works with Port 993

Expected result:
----------------
No errors. Working on Port 143



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26040&edit=1

Reply via email to