Hi all,
i have a very strange coding problem. I need to connect to a SSL socket with PHP and use a certificate to authenticate this client connection.
Opening a socket isn't the problem: fsockopen()
opening a secure socket isn't a problem neither: fsockopen(ssl://hostname, port)
But now the question is how i can connect and than verify the client with the server using a standard X.509 certificate.
Is there anyone who knows how to use the ssl features in fsockopen or does anyone have a clue on where to start?
The openssl docs in the php manual didn't help me much so that's why i'm coming here.
Oh BTW: It isn't a regular HTTP connection but a normal socket connection. Don't think anyone would have missed that, but it saves useless rectification messages.
Thanks in advance,
Maarten