The best place to see what these properties do would be in the source....
The boolean clientauth value is passed into :-
SSLServerSocket serverSocket = (SSLServerSocket) socket;
serverSocket.setNeedClientAuth(clientAuthNeeded);
and "Controls whether accepted server-mode SSLSockets will be initially
configured to require client authentication."
The keystore is where your certificates for the exchange are held.
Have you searched this mailing list already? I'm sure there was some
quite recent discussion.
--
Mark
I don't use it, and can't locate the HOWTO I remember reading a long
while ago that covered key generation and placement into the keystore.
Anyone know where that might be, or do we need to generate a new HOWTO?
Volunteers 8) ?
There is a discussion on our jpos-dev list :-
http://tech.groups.yahoo.com/group/jpos-dev/message/4189?gi=-102
Which has been referenced before, perhaps that can help you?
In particular, this message in the thread:-
http://tech.groups.yahoo.com/group/jpos-dev/message/4835
Holds config examples, describe (at a high level) steps to prepare the
keystore and some test output of a couple of tests using open_ssl text :-
A failed attempt:-
"
tlk@quark openssl $ openssl s_client -host localhost -port 9000 -cert
untrusted-client.pem
CONNECTED(00000003)
depth=0 /C=DK/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=jPOS/Q2 server
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=DK/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=jPOS/Q2 server
verify return:1
11395:error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate
unknown:s3_pkt.c:1052:SSL alert number 46
11395:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake
failure:s23_lib.c:226:
"
And then a good attempt:-
"
tlk@quark openssl $ openssl s_client -host localhost -port 9000 -cert
trusted-client.pem
CONNECTED(00000003)
depth=0 /C=DK/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=jPOS/Q2 server
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=DK/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=jPOS/Q2 server
verify return:1
"
Any good for you? Sorry I can't be of more help, as mentioned I don't
use this facility, but I do know it works for others, so assume it is a
case of getting everything aligned correctly, which seems to be the hard
bit 8(.
--
Mark
Thank you for confirming that back here.
Can you possibly indicate what you had not done at all, or in fact what
piece of the thread I pointed you to sorted it?
This detail might help someone in the future.
Of course, if you have a step by step account of the recent actions you
took, can you share them here?
>
> Thanks Again
You are very welcome.
--
Mark
/added to todo list
DB