I ran the tutorial application on a single computer. Then I deployed the application to machine A. Then I deployed the driver to machine A. Then I deployed the node to machine B.
I want to get the tutorial application working with SSL. What must be done?
My guess is the following:
1. edit the application config properties file to enable SSL
2. edit the application config SSL properties file to use the machine A keystore and truststore
3. edit the driver config SSL properties file to use the machine A keystore and truststore.
4. edit the driver config properties file to disable plain connections on port 11111 (port 11443 is enabled by default)
5. also: look around the driver properties file for an enable SSL property but there is no such boolean (why?)
6. edit the node config SSL properties file to use the machine B keystore and truststore
7. edit the node config properties file to target the actual IP of machine A
8. edit the node config properties file to target port 11443 of machine A
9. edit the node config properties file to enable SSL
I then start the server and it reports "accepting secure connections on port 11443".
Next I start the node and I get the following error:
"Attempting connection to the class server at 255.255.255.255:11443"
where 255.255.255.255 is the IP of machine A. This error message repeats.
On the driver side, the log file indicates the certificate is unknown.
[WARN ][org.jppf.nio.StateTransitionTask.run(89)]: error on channel SelectionKeyWrapper[id=4, readyOps=1, interestOps=0, context=NodeClassContext[channel=SelectionKeyWrapper[id=4], state=WAITING_INITIAL_NODE_REQUEST, resource=null, pendingResponses=0, type=node, peer=false, uuid=null, secure=true, ssl=true]] : javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
Listing the driver's trust store, I can see the correct hash: it is the hash of the node.
What is the cause of this problem?
Details: JPPF version 5.1.2, ubuntu 14.04, java 8 update 66