Results 1 to 3 of 3

Thread: Problem with SSL and PHP

  1. #1
    labesta is offline Registered User
    Name: Joao Magalhaes
    Organization: Faculdade de Engenharia da Universidade do Porto
    Project: Test project
    Join Date
    Jul 2005
    Location
    Portugal
    Posts
    3

    Problem with SSL and PHP

    Hi,

    I’m having some problems while trying to connect to an Ice server using SSL via PHP.
    I can connect without problems while using standard TCP or UDP connection, the problems appear only while using SSL.
    I’m using FC3 and installed ICE via RPM.
    I’ve compiled the PHP extension with all the necessary libs (IceSSL, IceXML and Expat).
    The file I'm using is the one from the hello example and I'm using the java version for the server. If I use the java client there's is no problem at all even using SSL.

    I get this message:

    Ice_UnknownLocalException Object
    (
    [unknown] => EndpointFactoryManager.cpp:105: Ice::EndpointParseException:
    error while parsing endpoint `ssl -p 10002'
    [message:protected] =>
    [string:private] =>
    [code:protected] => 0
    [file:protected] => /var/www/html/testeicephp/hello.php
    [line:protected] => 34
    [trace:private] => Array
    (
    [0] => Array
    (
    [file] => /var/www/html/testeicephp/hello.php
    [line] => 34
    [function] => stringToProxy
    [class] => Ice_Communicator
    [type] => ->
    [args] => Array
    (
    [0] => hello:tcp -p 10001:udp -p 10001:ssl -p 10002
    )


    )

    )

    )

    Thanks
    Last edited by labesta; 07-06-2005 at 01:39 PM.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    The EndpointParseException is an indication that the SSL plug-in is not installed. You will need to configure the SSL plug-in for IcePHP just like you would for any Ice for C++ program. For example, the configuration file from the C++ hello demo contains the following lines:

    Ice.Plugin.IceSSL=IceSSL:create
    IceSSL.Client.CertPath=../../../certs
    IceSSL.Client.Config=sslconfig.xml
    IceSSL.Server.CertPath=../../../certs
    IceSSL.Server.Config=sslconfig.xml

    For IcePHP, one solution is to place the lines above in a configuration file that is accessible to Apache, modify the pathnames as necessary, and add an ice.config directive to your php.ini file so that IcePHP loads this configuration file during Apache startup. The IceSSL shared library and its dependencies must also be accessible in Apache's shared library search path.

    Hope that helps,
    - Mark

  3. #3
    labesta is offline Registered User
    Name: Joao Magalhaes
    Organization: Faculdade de Engenharia da Universidade do Porto
    Project: Test project
    Join Date
    Jul 2005
    Location
    Portugal
    Posts
    3
    Tnx problem solved

    I was using a config file equal to the java one ... not like the cpp one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Almost breakdown,please help me!PHP+SSL
    By Shawn Zhang in forum Help Center
    Replies: 5
    Last Post: 03-02-2009, 03:13 AM
  2. An old problem about ICE for PHP installation
    By Shawn Zhang in forum Help Center
    Replies: 2
    Last Post: 07-24-2008, 02:28 AM
  3. PHP and Glacier2 Problem
    By neons in forum Help Center
    Replies: 2
    Last Post: 12-30-2007, 10:50 PM
  4. IceGrid Problem using PHP
    By cncrazyzz in forum Help Center
    Replies: 4
    Last Post: 09-07-2007, 04:56 AM
  5. Ice 2.1.2 and PHP SSL error ???
    By surfer in forum Help Center
    Replies: 4
    Last Post: 01-09-2006, 05:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •