axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsherw...@att.net
Subject Re: SSL configuration question
Date Fri, 02 Oct 2009 13:48:30 GMT


Hi Shankar,
Here you go --
George

#The LD_LIBRARY_PATH has not been changed.

echo $LD_LIBRARY_PATH
:/usr/local/axis2c/lib/

cd /home/gbs/axis2c/axis2c-src-1.6.0/samples/client/echo
ldd ./echo
        libaxutil.so.0 => /usr/local/axis2c/lib/libaxutil.so.0 (0x0064a000)
        libaxis2_axiom.so.0 => /usr/local/axis2c/lib/libaxis2_axiom.so.0 (0x00111000)
        libaxis2_engine.so.0 => /usr/local/axis2c/lib/libaxis2_engine.so.0 (0x00136000)
        libaxis2_parser.so.0 => /usr/local/axis2c/lib/libaxis2_parser.so.0 (0x00191000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00ad6000)
        libaxis2_http_sender.so.0 => /usr/local/axis2c/lib/libaxis2_http_sender.so.0 (0x00197000)
        libaxis2_http_receiver.so.0 => /usr/local/axis2c/lib/libaxis2_http_receiver.so.0
(0x001af000)
        libdl.so.2 => /lib/libdl.so.2 (0x009cd000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00877000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00ac4000)
        libneethi.so.0 => /usr/local/axis2c/lib/libneethi.so.0 (0x001b3000)
        libaxis2_http_common.so.0 => /usr/local/axis2c/lib/libaxis2_http_common.so.0 (0x001d0000)
        libguththila.so.0 => /usr/local/axis2c/lib/libguththila.so.0 (0x001e5000)
        /lib/ld-linux.so.2 (0x00859000)
        libssl.so.4 => /lib/libssl.so.4 (0x0072f000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x001f0000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x006bc000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00569000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x004be000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x004c3000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00c75000)

cd /home/gbs/axis2c/axis2c-src-1.6.0/docs/docs/hello/client
ldd ./hello
        libaxutil.so.0 => /usr/local/axis2c/lib/libaxutil.so.0 (0x00111000)
        libaxis2_axiom.so.0 => /usr/local/axis2c/lib/libaxis2_axiom.so.0 (0x00aaa000)
        libaxis2_parser.so.0 => /usr/local/axis2c/lib/libaxis2_parser.so.0 (0x00d77000)
        libaxis2_engine.so.0 => /usr/local/axis2c/lib/libaxis2_engine.so.0 (0x0029a000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00ad6000)
        libaxis2_http_sender.so.0 => /usr/local/axis2c/lib/libaxis2_http_sender.so.0 (0x00596000)
        libaxis2_http_receiver.so.0 => /usr/local/axis2c/lib/libaxis2_http_receiver.so.0
(0x00cb1000)
        libdl.so.2 => /lib/libdl.so.2 (0x009cd000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00877000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00130000)
        libguththila.so.0 => /usr/local/axis2c/lib/libguththila.so.0 (0x00d31000)
        libneethi.so.0 => /usr/local/axis2c/lib/libneethi.so.0 (0x00543000)
        libaxis2_http_common.so.0 => /usr/local/axis2c/lib/libaxis2_http_common.so.0 (0x0022b000)
        /lib/ld-linux.so.2 (0x00859000)
        libssl.so.4 => /lib/libssl.so.4 (0x0072f000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x005d0000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x006bc000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00140000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x004be000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x004c3000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00c75000)

cd /usr/local/axis2c/lib
ldd libaxis2_http_common.so.0.6.0
        libaxis2_axiom.so.0 => /usr/local/axis2c/lib/libaxis2_axiom.so.0 (0x00289000)
        libaxis2_parser.so.0 => /usr/local/axis2c/lib/libaxis2_parser.so.0 (0x00d92000)
        libguththila.so.0 => /usr/local/axis2c/lib/libguththila.so.0 (0x00e2d000)
        libaxutil.so.0 => /usr/local/axis2c/lib/libaxutil.so.0 (0x001c9000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00cf1000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00cb9000)
        libdl.so.2 => /lib/libdl.so.2 (0x00b69000)
        libc.so.6 => /lib/tls/libc.so.6 (0x002dd000)
        /lib/ld-linux.so.2 (0x00859000)

ldd libaxis2_http_receiver.so.0.6.0
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d52000)
        libaxutil.so.0 => /usr/local/axis2c/lib/libaxutil.so.0 (0x0051c000)
        libaxis2_http_common.so.0 => /usr/local/axis2c/lib/libaxis2_http_common.so.0 (0x00ed8000)
        libaxis2_engine.so.0 => /usr/local/axis2c/lib/libaxis2_engine.so.0 (0x006a8000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00c4e000)
        libdl.so.2 => /lib/libdl.so.2 (0x00111000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00115000)
        /lib/ld-linux.so.2 (0x00859000)
        libaxis2_axiom.so.0 => /usr/local/axis2c/lib/libaxis2_axiom.so.0 (0x0082e000)
        libaxis2_parser.so.0 => /usr/local/axis2c/lib/libaxis2_parser.so.0 (0x0073a000)
        libguththila.so.0 => /usr/local/axis2c/lib/libguththila.so.0 (0x009c4000)
        libneethi.so.0 => /usr/local/axis2c/lib/libneethi.so.0 (0x00cb4000)

ldd libaxis2_http_sender.so.0.6.0
        libaxis2_http_common.so.0 => /usr/local/axis2c/lib/libaxis2_http_common.so.0 (0x00eb3000)
        libaxis2_parser.so.0 => /usr/local/axis2c/lib/libaxis2_parser.so.0 (0x00a21000)
        libguththila.so.0 => /usr/local/axis2c/lib/libguththila.so.0 (0x00ba7000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00dc9000)
        libaxis2_axiom.so.0 => /usr/local/axis2c/lib/libaxis2_axiom.so.0 (0x004c9000)
        libaxutil.so.0 => /usr/local/axis2c/lib/libaxutil.so.0 (0x002ef000)
        libaxis2_engine.so.0 => /usr/local/axis2c/lib/libaxis2_engine.so.0 (0x006df000)
        libssl.so.4 => /lib/libssl.so.4 (0x0096a000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x00111000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00d2d000)
        libdl.so.2 => /lib/libdl.so.2 (0x001fb000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0030e000)
        /lib/ld-linux.so.2 (0x00859000)
        libneethi.so.0 => /usr/local/axis2c/lib/libneethi.so.0 (0x00251000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x001ff000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0026e000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00dc4000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00f18000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00f68000)

-------------- Forwarded Message: --------------
From: Selvaratnam Uthaiyashankar <uthaiyashankar@gmail.com>
To: Apache AXIS C User List <axis-c-user@ws.apache.org>
Subject: Re: SSL configuration question
Date: Fri, 02 Oct 2009 02:31:20 +0000


Hi,

Do you have any other Axis2/C related library in your LD_LIBRARY_PATH?
If so, can you remove them or put ${AXIS2C_HOME}/lib/ as the first
entry in $LD_LIBRARY_PATH?

Also, can you do "ldd  and see what are the
libraries/paths link to client?

Regards,
Shankar

On Fri, Oct 2, 2009 at 1:04 AM,   wrote:
> Shankar,
> Thank you for your help. I reconfigured as follows.
>
> cd /home/gbs/axis2c/axis2c-src-1.6.0
> su
> export AXIS2C_HOME=/usr/local/axis2c
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib/
> ./configure --enable-openssl=yes --prefix=${AXIS2C_HOME}
> --with-apache2="/usr/local/apache2/include" > config_out 2> config_err
>
> I found no errors or warnings in config_out; config_err was empty. I found
> no errors in the config.log file. The only warning seems to be unrelated:
> cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
> not for C
> Relevant lines from config.log are:
>
>   $ ./configure --enable-openssl=yes --prefix=/usr/local/axis2c
> --with-apache2=/usr/local/apache2/include
> ...
> configure:21638: checking whether to use openssl
> configure:21651: result: yes
> ...
> config.status:746: creating src/core/transport/http/sender/ssl/Makefile
> ...
> configure:23296: === configuring in util
> (/home/gbs/axis2c/axis2c-src-1.6.0/util)
> configure:23399: running /bin/sh ./configure '--prefix=/usr/local/axis2c'
> '--enable-openssl=yes' '--with-apache2=/usr/local/apache2/include'
> --cache-file=/dev/null --srcdir=.
> configure:23296: === configuring in axiom
> (/home/gbs/axis2c/axis2c-src-1.6.0/axiom)
> configure:23399: running /bin/sh ./configure '--prefix=/usr/local/axis2c'
> '--enable-openssl=yes' '--with-apache2=/usr/local/apache2/include'
> --cache-file=/dev/null --srcdir=.
> configure:23296: === configuring in neethi
> (/home/gbs/axis2c/axis2c-src-1.6.0/neethi)
> configure:23399: running /bin/sh ./configure '--prefix=/usr/local/axis2c'
> '--enable-openssl=yes' '--with-apache2=/usr/local/apache2/include'
> --cache-file=/dev/null --srcdir=.
> configure:23296: === configuring in guththila
> (/home/gbs/axis2c/axis2c-src-1.6.0/guththila)
> configure:23399: running /bin/sh ./configure '--prefix=/usr/local/axis2c'
> '--enable-openssl=yes' '--with-apache2=/usr/local/apache2/include'
> --cache-file=/dev/null --srcdir=.
>
> The diff command showed this config.log to be identical to that of the
> previous configure attempt.
> I appreciate your help with this.
> George
>
> -------------- Forwarded Message: --------------
> From: Selvaratnam Uthaiyashankar 
> To: Apache AXIS C User List 
> Subject: Re: SSL configuration question
> Date: Thu, 01 Oct 2009 03:02:18 +0000
>
>
> Hi,
>
> It seems Axis2/C engine (client side) is not configured with
> --enable-openssl=yes. Is there any errors when you configure? Can you
> configure with --enable-openssl=yes again and see?
>
> Regards,
> Shankar
>
> On Sun, Sep 27, 2009 at 8:14 AM, wrote:
>> I have been using axis2c-src-1.6.0 for a few days with an existing service
>> running Red Hat EL 4.7 and Apache2 httpd-2.0.63. Axis2/C is deployed as an
>> Apache2 module. The samples and hello work with http transport, but I have
>> not run https successfully with axis2 yet. The problem appears to be
>> similar
>> to that reported 2009-05-14 by chankm (Kwang Mien), but there does not
>> seem
>> to be a response to that message in the archive. Can anyone explain why
>> axis2c is not using https here?
>> Thanks for the help.
>> George Sherwood
>>
>> I am using a test system with a self-signed certificate. SSL is working
>> with
>> httpd; e.g. https://64.232.245.115/pub/promos.php is accessed as expected
>> from a remote browser. However SSL does not appear to be configured
>> correctly for axis2.
>>
>> Both of the following commands seem to run OK.
>> ./echo http://64.232.245.115/axis2/services/echo
>> ./hello http://64.232.245.115/axis2/services/hello
>>
>> But the responses for the corresponding https endpoints do not.
>> ./echo https://64.232.245.115:443/axis2/services/echo
>> yields "echo client invoke FAILED!"
>> ./hello https://64.232.245.115:443/axis2/services/hello
>> yields "hello client invoke FAILED!"
>>
>> The echo.log contains the following lines.
>> [Sat Sep 26 20:01:13 2009] [error] http_client.c(271) Transport protocol
>> is
>> unsupported by axis2
>> [Sat Sep 26 20:01:13 2009] [error] http_client.c(272) Invalid Transport
>> Protocol, HTTPS transport not enabled.
>> [Sat Sep 26 20:01:13 2009] [error] http_client.c(544) client data stream
>> null or socket error for host 64.232.245.115 and 443 port
>> [Sat Sep 26 20:01:13 2009] [error] http_client.c(548) A read attempt(HTTP)
>> for the reply without sending the request
>> [Sat Sep 26 20:01:13 2009] [error] http_sender.c(1381) status_code < 0
>> [Sat Sep 26 20:01:13 2009] [error] engine.c(179) Transport sender invoke
>> failed
>> [Sat Sep 26 20:01:13 2009] [error] echo.c(145) Stub invoke FAILED: Error
>> code: 75 :: A read attempt(HTTP) for the reply without sending the request
>>
>> And the hello_client.log contains the following lines.
>> [Sat Sep 26 20:17:19 2009] [error] http_client.c(271) Transport protocol
>> is
>> unsupported by axis2
>> [Sat Sep 26 20:17:19 2009] [error] http_client.c(272) Invalid Transport
>> Protocol, HTTPS transport not enabled.
>> [Sat Sep 26 20:17:19 2009] [error] http_client.c(544) client data stream
>> null or socket error for host 64.232.245.115 and 443 port
>> [Sat Sep 26 20:17:19 2009] [error] http_client.c(548) A read attempt(HTTP)
>> for the reply without sending the request
>> [Sat Sep 26 20:17:19 2009] [error] http_sender.c(1381) status_code < 0
>> [Sat Sep 26 20:17:19 2009] [error] engine.c(179) Transport sender invoke
>> failed
>> [Sat Sep 26 20:17:19 2009] [error] hello.c(94) Stub invoke FAILED: Error
>> code: 75 :: A read attempt(HTTP) for the reply without sending the request
>>
>> Relevant lines from the axis2.xml file are:
>>
>>         443
>>         false
>>
>> ...
>>
>>         HTTP/1.1
>>
>>
>>
> name="SERVER_CERT">/usr/local/apache2/conf/ssl.crt/64.232.245.115.crt
>>
>>
>> Both the server module and SSL client were configured with openssl
>> enabled.
>> Details are available if needed.
>>
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "The Open Source SOA Company"



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message