Problem reading keys from certificate in mobile app
posted 8 years ago
I'm working in a mobile application that communicates with a web service, and it must read from a PKCS#12 file its public and private keys to sign some data. The problem is that I've managed to make it work in j2se, but I'm just a beginner in j2me deployment, and I would need some help to find equivalent libraries to the following ones:
If there aren't available equivalent libs to these, I would like to know how could I change the code (I'll post it if necessary) to make it work in j2me in a short span of time, because I'm running out of time...
I'll reformulate my question, because I changed my code so much that it's completely different to what I had previosly.
The question is: How can I load and use a .cer file (X509 format) in a mobile application, so that I could get its public key in order to extract its module and exponent, and generate a private key to sign some data?
I'm using satsa and Bouncy Castle cripto libs, but I can't make it work.
Any help would be appreciated, cause I'm really stuck with this thing.