Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice 2.1.2 and PHP SSL error ???

Hello and a happy new year !!!

I've got the following exception from my PHP client if I invoke an secure communication. From other Java clients everything works great.
Ice_UnknownLocalException Object
(
    [unknown] => SslClientTransceiver.cpp:322: IceSSL::ProtocolException:
encountered a violation of the ssl protocol during handshake
     1 - Thread ID: 4143523520
     1 - Error:     336151574
     1 - Message:   error:14094416:lib(20):func(148):reason(1046)
     1 - Location:  s3_pkt.c, 1052
     1 - Data:      SSL alert number 46

    [message:protected] => 
    [string:private] => 
    [code:protected] => 0
    [file:protected] => /usr/local/apache2/htdocs/ice/observation.php
    [line:protected] => 83
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/local/apache2/htdocs/ice/observation.php
                    [line] => 83
                    [function] => ice_checkedCast
                    [class] => Ice_ObjectPrx
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ::Unazungumza::Kiswahili
                        )

                )

        )

)
The PHP client and the Java server application is on the same host.
In the Apache error log there is a SSL communication like usual and the certificates are at the right place.

Has somebody an hint or information about the error??
Thank a lot

Greetings surfer

Comments

  • benoit
    benoit Rennes, France
    Hi,

    Are you using the certificates provided with the Ice distribution? If that's the case, these certificates have expired recently and this is most likely the cause of this exception. To fix this problem, you need to generate new certificates or use the ones provided [thread=1981]here[/thread].

    Let us know if this doesn't help!

    Benoit.
  • Hello,
    thanks for the fast answer!!
    I use the certificates from the demo of the Ice version 2.1.2.
    I will replace them with yours from Ice version 3.0 and hope this will fix the exception.
    Thanks a lot !!
  • Hello,

    I've exchanged the complete certs folder with files from version 3.0 (ZIP).
    But I've got this error at the PHP side:

    Fatal error: main() [function.main]: unable to initialize communicator:

    PluginManagerI.cpp:195: Ice::PluginInitializationException: plug-in initialization failed:

    failure in entry point `IceSSL:create' in /usr/local/apache2/htdocs/ice/observation.php on

    line 54

    Line 54:
    $p = $ICE->stringToProxy("kiswahili:tcp -h 192.168.5.2 -p 10000:udp -h 192.168.5.2 -p

    10000:ssl -h 192.168.5.2 -p 10001");

    The Java client request works like expected but the PHP client don't like the certification files or the Ice application itself.

    Please give me some hints about the error.

    Thanks a lot
    Grretings surferhe
  • benoit
    benoit Rennes, France
    The IceSSL plugin initialization failed for some reasons. In theory, there should be an error message on the standard error output prior to this error message explaining why the plugin initialization failed. Could you check your logs to see if you see this message? This should give you some hints on why it failed.

    Benoit.