i think we can try to use the WTLS layor,but the file
certificate-file and privatekey-file
isnt with the program :(
here is the source in the wapbox.c (function
readconfig()).
#ifdef HAVE_WTLS_OPENSSL
/* Load up the necessary keys */ if ((s = cfg_get(grp, octstr_imm("certificate-file"))) != NULL) { if (octstr_compare(s, octstr_imm("none")) == 0) { debug("bbox", 0, "certificate file not set"); } else { /* Load the certificate into the necessary parameter */ get_cert_from_file(s, &x509_cert); gw_assert(x509_cert != NULL); debug("bbox", 0, "certificate parameter is %s", s); }
}
if ((s = cfg_get(grp, octstr_imm("privatekey-file"))) != NULL) { Octstr *password; password = cfg_get(grp, octstr_imm("privatekey-password")); if (octstr_compare(s, octstr_imm("none")) == 0) { debug("bbox", 0, "privatekey-file not set"); } else { /* Load the private key into the necessary parameter */ get_privkey_from_file(s, &private_key,password); gw_assert(private_key != NULL); debug("bbox", 0, "certificate parameter %s", s); } } #endif i use the ssl-server-cert-file and
ssl-server-key-file instead.
then use the mobile to test it
here is the state machine:
002-07-18 01:04:47 [10] DEBUG: event->type =
0
2002-07-18 01:04:47 [10] DEBUG: WTLS: wtls_machine 0, state EXCHANGE, event T-Un itdata.ind. 2002-07-18 01:04:47 [10] INFO: lyl: end pdu list 2002-07-18 01:04:47 [10] INFO: --------begin to enter the state machine--------- ----- 2002-07-18 01:04:47 [10] INFO: ----------------begin a new 1 machine----------- 2002-07-18 01:04:47 [10] DEBUG: WTLS 0: New state CREATING 2002-07-18 01:04:47 [10] INFO: -------------the wtls machine finish------------- --- event->type = 0
2002-07-18 01:04:47 [10] DEBUG: WTLS: wtls_machine 0, state CREATING, event T-Un itdata.ind. 2002-07-18 01:04:47 [10] INFO: lyl: end pdu list 2002-07-18 01:04:47 [10] INFO: --------begin to enter the state machine------- 2002-07-18 01:06:11 [10] DEBUG: WTLS: wtls_machine 0, state
CREATING, event T-Un
itdata.ind. 2002-07-18 01:06:11 [10] INFO: lyl: end pdu list 2002-07-18 01:06:11 [10] INFO: --------begin to enter the state machine--------- ----- 2002-07-18 01:06:11 [10] ERROR: WTLS: handle_event: unhandled event! 2002-07-18 01:06:11 [10] DEBUG: lyl: event->type = 0 2002-07-18 01:06:11 [10] DEBUG: You need to create wtls_pdulist_destroy! i want to know whether the private key file and the public key
file is right
:) if not, where can i get it
|