axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Steves <stev...@pobox.com>
Subject Re: setting server cert from the api
Date Thu, 27 Aug 2009 21:54:31 GMT
On Thu, Aug 27, 2009 at 09:26:32PM +0530, Selvaratnam Uthaiyashankar wrote:
: Can you try whether following works for you?
: 
: axis2_options_set_property(options, env, AXIS2_SSL_SERVER_CERT, property);

thanks.  tried that.  it crashes in openssl now.  some kind of pointer issue.

any ideas?

[Thu Aug 27 14:41:45 2009] [debug] op_client.c(888) Start:axis2_op_client_infer_transport
[Thu Aug 27 14:41:45 2009] [debug] op_client.c(954) End:axis2_op_client_infer_transport
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(91) axis2_engine_send start
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(680) Start:axis2_engine_invoke_phases
[Thu Aug 27 14:41:45 2009] [...TRACE...] phase.c(166) Entry:axis2_phase_invoke
[Thu Aug 27 14:41:45 2009] [debug] phase.c(210) Invoke the handler AddressingOutHandler within
the phase MessageOut
[Thu Aug 27 14:41:45 2009] [info]  Starting addressing out handler
[Thu Aug 27 14:41:45 2009] [debug] addr_out_handler.c(133) No action present. Stop processing
addressing
[Thu Aug 27 14:41:45 2009] [...TRACE...] phase.c(273) Exit:axis2_phase_invoke
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(701) End:axis2_engine_invoke_phases
[Thu Aug 27 14:41:45 2009] [...TRACE...] http_transport_sender.c(194) Entry:axis2_http_transport_sender_invoke
[Thu Aug 27 14:41:45 2009] [debug] http_transport_sender.c(246) ctx_epr:https://map.ilabs.example.com/test.yaws
[Thu Aug 27 14:41:45 2009] [debug] http_transport_sender.c(805) using axis2 native http sender.
[Thu Aug 27 14:41:45 2009] [...TRACE...] http_sender.c(252) Entry:axis2_http_sender_send
[Thu Aug 27 14:41:45 2009] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:6ab3031e-9352-1de1-257e-0016d320a8c8
[Thu Aug 27 14:41:45 2009] [info]  [ssl client] Client certificate chain filenot specified

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 27096, thread 0x820b9c00]
0x0bac4eb7 in ERR_add_error_data (num=5) at /usr/src/lib/libssl/src/crypto/err/err.c:335
335                             n+=strlen(a);
(gdb) bt
#0  0x0bac4eb7 in ERR_add_error_data (num=5) at /usr/src/lib/libssl/src/crypto/err/err.c:335
#1  0x0bb0f1dd in BIO_new_file (filename=0x73657665 <Address 0x73657665 out of bounds>,
mode=0x2ba58e8c "r")
    at /usr/src/lib/libssl/src/crypto/bio/bss_file.c:127
#2  0x0ba9f274 in X509_load_cert_crl_file (ctx=0x8168c6c0, file=0x7 <Address 0x7 out of
bounds>, type=0)
    at /usr/src/lib/libssl/src/crypto/x509/by_file.c:272
#3  0x0ba9ee7e in by_file_ctrl (ctx=0x8168c6c0, cmd=1, argp=0x7 <Address 0x7 out of bounds>,
argl=0, ret=0x0)
    at /usr/src/lib/libssl/src/crypto/x509/by_file.c:120
#4  0x0bab875a in X509_LOOKUP_ctrl (ctx=0xffffffff, cmd=1, argc=0x73657665 <Address 0x73657665
out of bounds>, argl=1, ret=0x0)
    at /usr/src/lib/libssl/src/crypto/x509/x509_lu.c:117
#5  0x0ba9e615 in X509_STORE_load_locations (ctx=0x8168bb40, file=0x73657665 <Address 0x73657665
out of bounds>, path=0x0)
    at /usr/src/lib/libssl/src/crypto/x509/x509_d2.c:92
#6  0x039acb10 in SSL_CTX_load_verify_locations (ctx=0x0, CAfile=0x73657665 <Address 0x73657665
out of bounds>, CApath=0x0)
    at /usr/src/lib/libssl/src/ssl/ssl_lib.c:2527
#7  0x0994c05c in axis2_ssl_utils_initialize_ctx (env=0x88486180, server_cert=0x73657665 <Address
0x73657665 out of bounds>, key_file=0x0, 
    ssl_pp=0x0) at ssl/ssl_utils.c:110
#8  0x0994b98c in axutil_stream_create_ssl (env=0x88486180, socket=8, server_cert=0x73657665
<Address 0x73657665 out of bounds>, key_file=0x0, 
    ssl_pp=0x0) at ssl/ssl_stream.c:96
#9  0x09949cc0 in axis2_http_client_send (client=0x85a8ee00, env=0x88486180, request=0x88656ec0,
ssl_pp=0x0) at http_client.c:265
#10 0x09944728 in axis2_http_sender_send (sender=0x8168c460, env=0x88486180, msg_ctx=0x863d9e00,
out=0x8168c2c0, 
    str_url=0x7d79a040 "https://map.ilabs.example.com/test.yaws", soap_action=0x299394d2 "")
at http_sender.c:1101
#11 0x09942555 in axis2_http_transport_sender_write_message (transport_sender=0x7f588de0,
env=0x88486180, msg_ctx=0x863d9e00, epr=0x884862a0, 
    out=0x8168c2c0, om_output=0x8168b480) at http_transport_sender.c:806
#12 0x09941606 in axis2_http_transport_sender_invoke (transport_sender=0x7f588de0, env=0x88486180,
msg_ctx=0x863d9e00)
    at http_transport_sender.c:309
#13 0x078989b4 in axis2_engine_send (engine=0x88656f90, env=0x88486180, msg_ctx=0x863d9e00)
at engine.c:176
#14 0x078c783b in axis2_op_client_two_way_send (env=0x88486180, msg_ctx=0x863d9e00) at op_client.c:1171
#15 0x078c66a2 in axis2_op_client_execute (op_client=0x8168b840, env=0x88486180, block=1)
at op_client.c:508
#16 0x078c95fd in axis2_svc_client_send_receive_with_op_qname (svc_client=0x85a8e300, env=0x88486180,
op_qname=0x8168c480, payload=0x8168dc40)
    at svc_client.c:732
#17 0x078c9871 in axis2_svc_client_send_receive (svc_client=0x85a8e300, env=0x88486180, payload=0x8168dc40)
at svc_client.c:830
#18 0x1c001305 in test_request (log_level=AXIS2_LOG_LEVEL_TRACE, log_file=0x0, 
    server_cert_path=0xcfbdb3a8 "/home/stevesk/cvs/example/test/cert.pem", url=0xcfbdb3d6
"https://map.ilabs.example.com/test.yaws")
    at test1.c:179
#19 0x1c001022 in main (argc=7, argv=0xcfbdb1d8) at test1.c:60
(gdb) 

Mime
View raw message