|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11587 SSL'd fsockopen would be nice
Submitted: 2001-06-20 14:18 UTC Modified: 2001-08-12 15:38 UTC
From: mitja at doticni dot net Assigned:
Status: Duplicate Package: Feature/Change Request
PHP Version: 4.0.5 OS:
Private report: No CVE-ID: None
 [2001-06-20 14:18 UTC] mitja at doticni dot net
While working on #5865, you could also add generic SSL socket support to fsockopen, something like
fsockopen("ssl://", ...)

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 -r -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 ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-12 15:28 UTC]
This extends Bug #5865.

 [2001-08-12 15:36 UTC]
When we have streams, this will be there.
(it's in the pipeline).
 [2001-08-12 15:38 UTC]
Err, I'll update 5865 instead...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 07:01:29 2024 UTC