Re: stream_socket_accept() on an SSL socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When you "talk" to an SSL server directly with sockets, I believe you need
to implement the SSL protocol yourself, which would probably be overkill.
There must be a PHP library which does or a native function. You should
probably look at this page:
http://nz.php.net/manual/en/wrappers.http.php

and use fopen instead.

On Wed, Dec 3, 2008 at 12:48 PM, Darren <darren@xxxxxxxxxx> wrote:

> I'm trying to connect to an SSL server, but I keep on getting these errors:
> ---------
> PHP Warning:  stream_socket_accept(): SSL operation failed with code 1.
> OpenSSL Error messages:
> error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol in
> C:\scripts\bouncer.php on line 273
> PHP Warning:  stream_socket_accept(): Failed to enable crypto in
> C:\scripts\bouncer.php on line 273
> PHP Warning:  stream_socket_accept(): accept failed: The operation
> completed successfully.
>  in C:\scripts\bouncer.php on line 273
> ---------
>
> Line 273: while ($client = stream_socket_accept($srv_socket)) {
>
> Over the past few days of searching I've found a lot of people asking a
> similar thing but without any answers. I've tried the latest PHP snapshot
> too.
>
> Can anyone here give any insight to these errors??
>
> Thanks for any help
> Darren
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Tim-Hinnerk Heuer

http://www.ihostnz.com -- Web Design, Hosting and free Linux Support

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux