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,
  If you use schandium-1.0.0-M4, you should probably use the cf-integration[1] branch of leshan.
  (We will release a new version soon based on it)
  Did you add the security information in Security Tab of the web UI ?
  You should probably change the endpointidentifier in LeshanClientExample to set a constant value instead of random value (UUID.randomUUID().toString();)
  This endpoint identifier will be needed to fill the security info in the web UI.
 
  For now, the DTLS support of Leshan Client is really basic, we need to provide a better API and propose a sample for secure connection.
HTH

Simon

[1]https://github.com/eclipse/leshan/tree/cf-integration

Le 16/06/2015 13:48, Kailash Kumar a écrit :
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


_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev


Back to the top