Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] DTLS security error in leshan client server testing

Hi,
I am trying to test UDP channel security between leshan-standalone server and LeshanClientExample. 
I tried both PSK mode and RPK mode separately by modifying both leshan-standalone and LeshanClientExample accordingly with help of SecurityTest and SecureIntegrationTestHelper classes. In both cases, client shows similar messages like the following-

Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 1, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 2, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 3, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 4, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 5, next_receive_seq: 6
Device Registration (Success? FORBIDDEN)
        Device Registration Error: FORBIDDEN
If you're having issues connecting to the LWM2M endpoint, try using the DTLS port instead.

and server console shows the following messages in RPK and PSK mode-

RPK Mode-
Jun 11, 2015 2:45:20 PM org.eclipse.californium.scandium.DTLSConnector receiveNext
INFO: Created new session as server with peer: /127.0.0.1:59787

PSK Mode-
INFO: Client /127.0.0.1:49739 used PSK identity : Client_identity

Could anyone please tell why the client is not able to register with the server? I am using Scandium-1.0.0-M3 library.

Thanks in Advance.
--
Kailash Kumar
IT Engineer, CMC LTD
Hyderabad,India


Back to the top