unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

TLS Auth Fails #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On my machine, wasn't working as expected,

wrapped stream_socket_enable_crypto in parseProceed function in a var_dump
.... was returning false!!!

reading the php docs,
http://www.php.net/manual/en/function.stream-socket-enable-crypto.php#79001
was suggested to use SSL rather than TLS ... 

worked first time...

suggest, either 
changing to 
stream_socket_enable_crypto($this->stream, TRUE,
STREAM_CRYPTO_METHOD_SSLv3_CLIENT);

or
if (!stream_socket_enable_crypto($this->stream, TRUE,
STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
 stream_socket_enable_crypto($this->stream, TRUE,
STREAM_CRYPTO_METHOD_SSLv3_CLIENT);
}

although on my machine it was taking 5-10s to 'timeout'

Original issue reported on code.google.com by bruce.al...@gmail.com on 22 May 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out Bruce. Marking this issue as "Started", will push 
this 
to production in next release. Thanks again.

-Abhi

Original comment by mailsfor...@gmail.com on 22 May 2009 at 4:36

GoogleCodeExporter commented 9 years ago

Original comment by mailsfor...@gmail.com on 22 May 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Pushed with revision 45.

Original comment by mailsfor...@gmail.com on 2 Jan 2010 at 3:01

GoogleCodeExporter commented 9 years ago
I am used jaxl.V3 is always errors on 

jaxl_exception:48 - 2013-04-05 22:02:32 - got jaxl exception construct with 
stream_socket_enable_crypto() [<a href='streams.crypto'>streams.crypto</a>]: 
this stream does not support SSL/crypto, 2, 
D:\wamp\www\jaxl\core\jaxl_socket_client.php, 128.

Any help? plz help me to fix it, I looking from it soon. thanks 

Original comment by sreypoev...@gmail.com on 5 Apr 2013 at 8:01