File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Problem reading keys from certificate in mobile app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem reading keys from certificate in mobile app" Watch "Problem reading keys from certificate in mobile app" New topic
Author

Problem reading keys from certificate in mobile app

raul marzo
Greenhorn

Joined: Apr 09, 2007
Posts: 21
Hi.

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...

Thanks in advance.


<a href="http://benderscasino.blogspot.com/" target="_blank" rel="nofollow">http://benderscasino.blogspot.com/</a>
raul marzo
Greenhorn

Joined: Apr 09, 2007
Posts: 21
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem reading keys from certificate in mobile app