B4J Question SSL on B4J server

janderkan

Well-Known Member
Licensed User
Longtime User
Hi

I am next in line with the people that have used several days to get this working.
I have read the Wikipedia and think I understand the fundamentals.
I have a jRDC2 server and a B4J client running, and want to add SSL.
I run Keytool from the commandline.
I use this HowTo
1. Will I have a working Keystore using only this command ?
B4X:
keytool -keystore keystore -alias jetty -genkey -keyalg RSA
2. The command only asks for 1 password, should I use the same password for both lines ?
B4X:
ssl.KeyStorePassword = "123456"
ssl.KeyManagerPassword = "654321"
3. The first and last name should be my IP address, so '127.0.0.1 for development and '98.135.1.45' for my VPS ?
4. Can the rest of inputs be blank ?
5. I copy my keystore to the directory that contains 'RDCserver.jar'
6. The server starts and runs, I can use it with my client "http://127.0.0.1:55033/rdc".
7. I try to change the client to use "https://127.0.0.1:8443/rdc" and I get following: 'javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated'
 
Top