Hi!
I try to secure an TCP-Connection bewteen an Android-App and an Java-
Application.
I try to use SSL and CipherInputStream/CipherOutputStream but i can't
get it working.
on the JAVA-Application it's fine with an JKS-Keystore created with
keytool.
Code of creating an listening SSL-Socket in the JAVA-Application:
[code]
//Setup Keys
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(new FileInputStream("esvdrpkeys"),
"esvdrp".toCharArray());
KeyManagerFactory kmf =
KeyManagerFactory.getInstance("X509");
kmf.init(ks, "esvdrp".toCharArray());
SSLContext sslcontext = SSLContext.getInstance("SSLv3");
sslcontext.init(kmf.getKeyManagers(), null, null);
SSLServerSocketFactory factory =
sslcontext.getServerSocketFactory();
enc_sock = (SSLServerSocket)
factory.createServerSocket(esvdrp_port);
[/code]
Now i want to connect with the Android-app to this ssl-serversocket.
i've got following problems:
- JKS is not supported by Android
- BKS is not supported by the JAVA-Application
- i don't know how to create an BKS keystore
with the CipherStreams i've got the problem, that i don't know how to
implement a non-block cipher.
Is there some example Code for an encrypted TCP-Connection between an
android-app and an JAVA-Application?
Greets Markus
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en