Secure socket connection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arcadis
Forum Newbie
Posts: 1
Joined: Wed Sep 11, 2002 4:36 pm

Secure socket connection

Post 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
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Looks like it's just around the corner, or probably in CVS.

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