Skip to main content

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

Hi,
I am still stuck at the same issue as mentioned in the earlier post. I tried using Scandium-1.0.0-M4 but then it shows DTLSConnector as deprecated. 
Moreover, I get from the source code that the response code 'FORBIDDEN' comes when 'The End-point Client Name results in a duplicate entry on the LWM2M Server'  but this does not seem the case for me. 

Any help on this is highly appreciated.

-Kailash

On Thu, Jun 11, 2015 at 3:12 PM, Kailash Kumar <chaudhary.kailash10@xxxxxxxxx> wrote:
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




--
Kailash Kumar
B.Tech in Electrical Engineering
IIT Delhi, India
+91-7838752742

Back to the top