Re: Suggestion required regarding generation of Public-Private Key with SAT
[email protected] Thu, 12 Jun 2008 08:44:02 PDT
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <19883539.75711213285478067.JavaMail.tomcat@sdcst12.sjc.collab.net> |
You generate the keypair on the desktop using the keytool, just like you would for setting up a desktop pub/priv keypair. You take the public key file and include it in your jar file, and then you would read it as a resource from the jarfile into a byte array then use the logic that the link: http://java.sun.com/j2me/docs/satsa-dg/AppD.html shows in method runCipher(). Or you might want to generate the pub/priv key on the fly on the web server, here again are some google links using the search key of "generate public private RSA keypair java". http://exampledepot.com/egs/java.security/GenKeyPair.html http://www.example-code.com/java/rsa_generateKey.asp Then have a server request over HTTPS (you don't want to send your public key in clear text) send the public key to the client so that the MIDlet does not have any encryption information when deployed for hackers to read from. -Shawn [Message sent by forum member 'sfitzjava' (sfitzjava)] http://forums.java.net/jive/thread.jspa?messageID=279966 =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff KVM-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".