Hi Guys,
I'm working on a java mobile app (J2ME MIDP 2.0) which connects to a java server, which I created. The java mobile app is an instant messenger. I want to use stunnel to encrypt the communication between the app and the server. At the moment the server runs on my localhost on port 5555 and accepts connections from the mobile device emulator I have running on the same machine. Eventually I want to transfer the mobile app on to my mobile and use it from there. My machine is running the following versions stunnel 4.29 on x86-pc-mingw32-gnu with OpenSSL 0.9.8l on Windows 7 x64. I have not yet configured a pam or config file but I would like to continue listening on port 5555 with my own certificate (but for now any will do).
Will the fact that I'm running both my server and device emulator on one machine mean that it'll bypass stunnel and I'll never know if it works or not?
Should I have my mobile app use SecureConnection (SSL encrypted) class? In that case, I'd have to make the server listen for SSL connections too. That would defeat the purpose of stunnel.
Help on configuration is welcome.
Thanks for reading, I'm looking forward to your replies Vladimir
Vladimir Stariradev vlad.star@gmail.com writes:
[...]
Will the fact that I'm running both my server and device emulator on one machine mean that it'll bypass stunnel and I'll never know if it works or not?
No, as long as the device emulator is using the port that stunnel is listening on and not the port your app is listening on, it will go through stunnel.
-----Scott.