Page 1 of 1

Secure socket connection

Posted: Wed Sep 11, 2002 4:36 pm
by arcadis
Hi all,

a few days ago i stumbled upon the following problem:
I need to make a connection to a non-HTTP(S) server. I need to make a normal socket connection (like when connecting to a POP3 server), but this connection has to be secured with SSL.
It works like this:
Both the server and the client have the same certificate/key pair. The client connects and sends the certificate to the server. The server checks the certificate and verify's the users identity and grands a connection.

Now the problem is that I do not know how to make this secure connection. a normal socket connection is not the problem (fsockopen or something like it), but sending the certificate and encrypting the data is.
I do not need any cURL solutions, because this only supports HTTPS connections and no SSL socket connections.

I really really hope someone can help me. ;)

Thanks in advance,

Maarten

Posted: Wed Sep 11, 2002 8:59 pm
by jason
Looks like it's just around the corner, or probably in CVS.

http://www.php.net/manual/en/function.fsockopen.php