OSCORE support in Leshan
See original GitHub issueThis issue aims to centralize all about OSCORE integration in Leshan 2.0.0(LWM2M 1.1). Currently work is in progress leading by @rikard-sics, he also works on OSCORE integration in Californium.
See specification for more details :
- draft-ietf-core-object-security / oscore
- oscore in LWM2M 1.1
- end-to-end-security-for-the-internet-of-things page
The code will be available in a oscore
branch, waiting we have a minimal viable feature which could be integrated in a 2.0.0 branch.
A minimal viable feature could be :
(Demo are not mandatory for a minimal viable feature but integration test should be there)
Issue Analytics
- State:
- Created 4 years ago
- Comments:65 (57 by maintainers)
Top Results From Across the Web
IETF Hackathon: Software / Firmware updates for IoT devices
Integration of OSCORE into Leshan (LwM2M server) and Wakaama (LwM2M client) (in progress). • Successfully tested registration with the ...
Read more >OSCORE: A look at the new IoT security protocol - Ericsson
In our latest research post, we examine the OSCORE IoT security protocol which provides end-to-end communication protection of constrained ...
Read more >leshan Changes [Jenkins] - Eclipse CI
GH-1293: Enhance ApplicationData support (new Authorizer API) — Simon ... #1203: Add Oscore Support to leshan-client-demo — Simon Bernard / ...
Read more >Leshan Shizhong·Leshan Giant Buddha - Booking.com
Featuring a sun terrace and a 24-hour front desk, Leshan Shizhong·Leshan Giant Buddha· is well situated in Leshan, 1.6 miles from Jiazhouzhang Juan...
Read more >Wow Hotel Leshan: 2023 Room Prices, Deals & Reviews
Discover genuine guest reviews for Wow Hotel Leshan, in Shizhong District ... Free airport shuttle; Gym; Parking available; Room service; Housekeeping ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello. Yes I am indeed working on OSCORE. Currently I am working on implementing usage of the OSCORE Appendix B.2 procedure when OSCORE is used in Leshan. It is specified in the LWM2M 1.1 Transport Bindings document section 5.5.3 that Appendix B.2 of OSCORE should be used.
Basically Appendix B.2 derives a new OSCORE Security Context (with new Sender and Recipient keys). The benefit this has is that if a LWM2M client reboots and starts using the same Security Context that it was originally configured with, it will not be using the same Sender Key while starting over from sequence number 0 (thus having nonce and key reuse). But rather it will first run Appendix B.2 to generate a new Context (Sender and Recipient keys) with the LWM2M Server or LWM2M Bootstrap server. So essentially every time the client connects the first time using OSCORE to a LWM2M Server or LWM2M Bootstrap server, Appendix B.2 will be run. See https://tools.ietf.org/html/rfc8613#appendix-B.2
However, the core functionality for Appendix B.2 is implemented in Californium. While trying to make use of this in Leshan I realized there was an issue in the Californium code, in the specific case the client takes initiative to run Appendix B.2 but the server is then the first to actually send a request afterwards (as will happen when bootstrapping or registering). So basically I am now working on the Californium code to fix this issue (and some other things about Appendix B.2). My aim is to have a PR created for Californium in the coming week. Then I will move over to implement this in Leshan (perhaps I can have an intermediate solution until Californium releases a new version).
One nice benefit of having this Appendix B.2 functionality-wise is also that currently if the client is restarted but the server is not, the server will complain about replayed messages. But since Appendix B.2 refreshes the security contexts this problem will no longer exist.
Yes, sorry for the period of silence. I have been busy mostly with other unrelated things. As for Californium I have prepared code for updating the Appendix B.2 functionality, after doing interop testing with another implementer. I intend to create a PR for that to Californium in the near future.
Currently I am working on wrapping up a paper, when that is done (a matter of weeks) I hope to have more time to get back to the work related to Leshan.