https problem

https problem

Postby mbogusiak on Wed Nov 18, 2009 8:32 am

Hello,


I am having problems with implementing https using ip packages (packages come from Enhanced Wireless Kit 6.13). I have already generated certificate and private key (128B long) using openssl. What is more I am able to load the content of this files into rsa_key structures. Device is able to send the certificate to the browser (Wireshark shows that). But the problem appears when the browser sends Client_Key_Exchanege message. I found out that the problem is insidethe function rsa_expmod(). I am sure that I am passing correct arguments (encrypted_pre_master_secret message received from the browser, and private key from the file), but after calling mpi_exptmod() function returns with error. Has anyone similiar problem? Or maby someone succeeded with the https implementation?

Code: Select all
mpi_exptmod(&tmp, &key->d, &key->N, &tmp)

/*
key->d  - 128B  private exponent form the privkey file
key->N -  128B modulus from the privkey file
tmp - enrypted_pre_master_secret

*/


thank you

--
Marcin
mbogusiak
 
Posts: 2
Joined: Thu Nov 05, 2009 7:58 am

Return to IP7K, IP5K, IP3K, IP2K



cron