#21642 [Opn->Bgs]: fsockopen() tls doenst work with tlsftp's

From: Date: Tue, 14 Jan 2003 22:41:06 +0000
Subject: #21642 [Opn->Bgs]: fsockopen() tls doenst work with tlsftp's
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30038@lists.php.net to get a copy of this message
ID: 21642 Updated by: wez@php.net Reported By: toppi@kacke.de -Status: Open +Status: Bogus Bug Type: Sockets related PHP Version: 4.3.0 New Comment: this is expected behaviour; fsockopen("tls://") opens the socket with TLS turned on. By default, TLS-enabled ftp servers start "in the clear" - with crypto turned off. If you want to use TLS over ftp, consider using fopen("ftps://") instead (which will attempt TLS negotiation according to the relevant rfcs), or if that is not sufficient, try using the curl functions. Previous Comments: ------------------------------------------------------------------------ [2003-01-14 16:28:29] toppi@kacke.de Trying to tls://ftp_ip:port ... Warning: fsockopen() [function.fsockopen]: php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in ftpclass.php on line 204 Warning: fsockopen() [function.fsockopen]: failed to activate SSL mode 2 in ftpclass.php on line 204 The TLS SERVER replies tru fread() at least : UK (glftpd 1.28_Linux+TLS) ready. 500 '': Command not understood. I would expect when using a tls-prefix its working similare to ftp_ssl_connect (what is working fine but not needed cause no filepointer back). No chance in php to connect ftp+tls tru fsock which is needed if you need a filepointer back to use fread/write etc. Greetings Toppi ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21642&edit=1

« previous php.bugs (#30038) next »