Bug #5865 Updated: fopen with ssl support

From: Date: Sat, 16 Mar 2002 16:10:58 +0000
Subject: Bug #5865 Updated: fopen with ssl support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2648@lists.php.net to get a copy of this message
ID: 5865 Updated by: wez@php.net Reported By: jianmang@stachanov.com -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: ANY PHP Version: 4.0.1pl2 Assigned To: wez New Comment: Implemented in PHP 4.3.0. Sorry it took so long :-) Previous Comments: ------------------------------------------------------------------------ [2001-08-12 15:40:32] wez@php.net It's in the pipeline. Assigning to myself. --Wez. ------------------------------------------------------------------------ [2001-08-12 15:29:26] sebastian@php.net User Response: While working on #5865, you could also add generic SSL socket support to fsockopen, something like fsockopen("ssl://example.com", ...) don't forget to add support for client certificates/keys, including passing the password to unlock 'em (ok, this would probably require a completely new function). for connecting to a single server, one solution is running a stunnel daemon: stunnel -c -d 127.0.0.1:1000 -r example.com:123 -p /certs/blah.pem and then fsockopen()ing to that port; however, this is both a security problem (anyone on the machine can connect to that port) and useless, if one wishes to connect to a host that is not known in advance. another option would be to allow php to talk to exec'd processes (hopefully stunnel works this way; it doesn't when piped), but this requires an extra process per request which is a resource hog. and, well, this is all in openssl already, so ... ------------------------------------------------------------------------ [2000-07-31 08:18:14] hholzgra@php.net reopened as the report clearly stated that curl was not the desired option ... ------------------------------------------------------------------------ [2000-07-31 01:44:58] sterling@php.net You can use PHP's built-in CURL support in the latest CVS. ------------------------------------------------------------------------ [2000-07-31 01:26:28] jianmang@stachanov.com I would love to see fopen can "talk" to a SSL enabled server. This feature is crucial for server-to-server secure communication/automation. Currently I use curl to acheive this. Curl is a ~1 MB beast, obviously this creates considerable startup costs. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=5865&edit=1

« previous php.bugs (#2648) next »