Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cf-dev] Handshake error with PSK

Dear developers,
I am Marco Minici, a Computer Engineering student. Realizing a project concerning CoAP implementation protocol with DTLS, I got a problem. My goal was to use PSK algorithm in order to make two machines communicate, so I have used a InMemoryPskStore to configure the DTLSConnectorConfig.Builder. In Californium API I read that I could use as CipherSuite TLS_PSK_WITH_AES_128_CCM_8 or TLS_PSK_WITH_AES_128_CBC_SHA256 if only the pskStore is set. Whatuld be the problem?
Server console log give this:
11 FINER [ServerHandshaker]: Client [/192.168.43.246:61525] uses PSK identity [Client_identity] - (org.eclipse.californium.scandium.dtls.ServerHandshaker.java:267) receivedClientKeyExchange() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)
11 INFO [DTLSConnector]: Aborting handshake with peer [/192.168.43.246:61525]: Cannot authenticate client, identity [Client_identity] is unknown - (org.eclipse.californium.scandium.DTLSConnector.java:1584) terminateOngoingHandshake() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)
11 FINE [DTLSConnector]: Terminating connection with peer [/192.168.43.246:61525], reason [HANDSHAKE_FAILURE] - (org.eclipse.californium.scandium.DTLSConnector.java:483) terminateConnection() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)
11 FINE [DTLSConnector]: Received CHANGE_CIPHER_SPEC record from peer [/192.168.43.246:61525] with no handshake going on - (org.eclipse.californium.scandium.DTLSConnector.java:430) processChangeCipherSpecRecord() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)
11 FINE [DTLSConnector]: Received Handshake (22) record from peer [/192.168.43.246:61525] - (org.eclipse.californium.scandium.DTLSConnector.java:433) processHandshakeRecord() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)
11 FINE [DTLSConnector]: Discarding unexpected handshake message [epoch=1] received from peer [/192.168.43.246:61525] without existing connection - (org.eclipse.californium.scandium.DTLSConnector.java:702) processHandshakeRecordWithoutConnection() in thread DTLS-Receiver-0.0.0.0/0.0.0.0:5684 at (2017-03-27 18:05:06)

Best regards,
Marco Minici

Back to the top