WTLS and Kannel 1.4 - Query - Does it Work?
Hi Everyone, I am wondering if WTLS support in kannel 1.4.0 is there? I am trying to get the WTLS component of the the Kannel Wap Gateway working on Cygwin system. I have successfully configured with the with-wtls=openssl switch. I have also compiled the openssl package with the FIPS switch. When I start-up the gateway. I get the following output: $ ./bearerbox.exe ../kannel/etc/wapkannel.conf 2005-06-21 11:09:20 [3540] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2005-06-21 11:09:20 [3540] [0] WARNING: DLR: using default 'internal' for storage type. 2005-06-21 11:09:20 [3540] [0] INFO: DLR using storage type: internal 2005-06-21 11:09:20 [3540] [0] DEBUG: Kannel bearerbox version `1.4.0'. Build `Jun 20 2005 17:19:17', compiler `3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)'. System CYGWIN_NT-5.1, release 1.5.17(0.129/4/2), version 2005-05-25 19:38, machine i686. Hostname [WITHHELD], IP [X.X.X.X]. Libxml version 2.6.16. Using WTLS library OpenSSL 0.9.7g 11 Apr 2005. Using native malloc. 2005-06-21 11:09:20 [3540] [0] INFO: Added logfile `/tmp/bearerbox.log' with level `1'. 2005-06-21 11:09:20 [3540] [0] ERROR: SSL: error:02001002:system library:fopen:No such file or direc tory 2005-06-21 11:09:20 [3540] [0] PANIC: reading global server certificate file my-wap.cert, the certif icate isn't consistent with the private key in file my-wap.key ( or failed reading the file) My kannel.conf looks like this: group = core admin-port = 13000 wapbox-port = 13002 admin-password = bar #status-password = foo #admin-deny-ip = #admin-allow-ip = wdp-interface-name = * log-file = /tmp/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 #access-log = access.log #store-file = kannel.store ssl-server-key-file = my-wap.key ssl-server-cert-file = my-wap.cert group = wapbox bearerbox-host = localhost log-file = /tmp/wapbox.log log-level = 0 syslog-level = none access-log = /tmp/wapaccess.log FYI both the key and cert file are in the same directory as the conf file. Can anyone help? Has anyone got the WTLS stuff to work? Has anyone instructions on how to generate appropiate private/public keys and certificates (self-signed)? Regards, Faisal Nazir
Re: WTLS and Kannel 1.4 - Query - Does it Work?
Hi, Nazir Faisal-NZRF001 wrote: *FYI both the key and cert file are in the same directory as the conf file.* Its relative to the directory the kannel is started in, not the conf file. *Can anyone help? Has anyone got the WTLS stuff to work?* Yep. *Has anyone instructions on how to generate appropiate private/public keys and certificates (self-signed)?* #create keys with #openssl genrsa -out private.pem #openssl req -new -x509 -key private.pem -out public.pem -days 365 Change the parameters if you need different behavior. Be warned though, if you use self signed then lots of things won't talk to you! Cheers, Gareth -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
Re: FW: WTLS and Kannel 1.4 - Query - Does it Work?
:06:26 [248] [9] DEBUG: in CREATED - just added pdu... 2005-06-21 12:06:26 [248] [9] DEBUG: Setting msg size to : 0 2005-06-21 12:06:26 [248] [9] DEBUG: Packed PDU Length: 3 2005-06-21 12:06:26 [248] [9] DEBUG: adding address 2005-06-21 12:06:26 [248] [9] DEBUG: WTLS 0: New state EXCHANGE 2005-06-21 12:06:26 [248] [0] DEBUG: Msg object at 0x10128248: 2005-06-21 12:06:26 [248] [0] DEBUG: type: wdp_datagram 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.source_address: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10128680: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 9 2005-06-21 12:06:26 [248] [0] DEBUG:size: 10 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: 31 32 37 2e 30 2e 30 2e 31 127. 0.0.1 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.source_port: 1938 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.destination_address: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10129218: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 7 2005-06-21 12:06:26 [248] [0] DEBUG:size: 8 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: 30 2e 30 2e 30 2e 30 0.0. 0.0 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.destination_port: 9203 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.user_data: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10129200: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 11 2005-06-21 12:06:26 [248] [0] DEBUG:size: 12 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: c2 00 01 00 06 02 32 49 d9 ab cc ..2I... 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:26 [248] [0] DEBUG: Msg object ends. 2005-06-21 12:06:26 [248] [0] INFO: Event created 2005-06-21 12:06:26 [248] [0] INFO: Set address and stuff 2005-06-21 12:06:26 [248] [0] DEBUG: Offset is now : 0 2005-06-21 12:06:26 [248] [0] DEBUG: Finished, found 1 PDUs 2005-06-21 12:06:26 [248] [0] INFO: Datagram unpacked! 2005-06-21 12:06:26 [248] [9] DEBUG: event-type = 0 2005-06-21 12:06:26 [248] [9] DEBUG: WTLS: wtls_machine 0, state EXCHANGE, event T-Unitdata.ind.2005 -06-21 12:06:26 [248] [0] DEBUG: Msg object at 0x10128248: 2005-06-21 12:06:26 [248] [0] DEBUG: type: wdp_datagram 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.source_address: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10129218: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 9 2005-06-21 12:06:26 [248] [0] DEBUG:size: 10 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: 31 32 37 2e 30 2e 30 2e 31 127. 0.0.1 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.source_port: 1938 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.destination_address: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10128680: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 7 2005-06-21 12:06:26 [248] [0] DEBUG:size: 8 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: 30 2e 30 2e 30 2e 30 0.0. 0.0 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.destination_port: 9203 2005-06-21 12:06:26 [248] [0] DEBUG: wdp_datagram.user_data: 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string at 0x10128470: 2005-06-21 12:06:26 [248] [0] DEBUG:len: 11 2005-06-21 12:06:26 [248] [0] DEBUG:size: 12 2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0 2005-06-21 12:06:26 [248] [0] DEBUG:data: c2 00 02 00 06 02 32 49 d9 ab cc ..2I... 2005-06-21 12:06:26 [248] [0] DEBUG: Octet string dump ends. 2005-06-21 12:06:27 [248] [0] DEBUG: Msg object ends. 2005-06-21 12:06:27 [248] [0] INFO: Event created 2005-06-21 12:06:27 [248] [0] INFO: Set address and stuff 2005-06-21 12:06:27 [248] [0] DEBUG: Offset is now : 0 2005-06-21 12:06:27 [248] [0] DEBUG: Finished, found 1 PDUs 2005-06-21 12:06:27 [248] [0] INFO: Datagram unpacked! Segmentation fault (core dumped) -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 11:26 To: Nazir Faisal-NZRF001 Cc: users@kannel.org Subject: Re: WTLS and Kannel 1.4 - Query - Does it Work? Hi, Nazir Faisal-NZRF001 wrote: *FYI both the key and cert file are in the same directory as the conf file.* Its relative to the directory the kannel is started in, not the conf file. *Can anyone help? Has anyone got the WTLS stuff to work?* Yep. *Has anyone instructions on how to generate appropiate private/public keys and certificates (self-signed)?* #create keys with #openssl genrsa -out
RE: FW: WTLS and Kannel 1.4 - Query - Does it Work?
I'm pretty sure this does'nt work. Check the user and dev archives for similar questions. As far as I recall, the implementation was never finished and no-one has picked it up.
RE: FW: WTLS and Kannel 1.4 - Query - Does it Work?
Thanks for that. That confirms my suspicions. Regards, Faisal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Reakes Sent: 21 June 2005 12:51 To: Paul Keogh; users@kannel.org Subject: Re: FW: WTLS and Kannel 1.4 - Query - Does it Work? Hey, If thats so then I must have imagined playing with it. Sorry about that. Gareth Paul Keogh wrote: I'm pretty sure this does'nt work. Check the user and dev archives for similar questions. As far as I recall, the implementation was never finished and no-one has picked it up. -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com