Coder Social home page Coder Social logo

leshan-bsserver-rotkey's Introduction

leshan-bsserver-rotkey

A very simple LWM2M bootstrap server used to test key rotation.

Build & Run

Build the test server with :

mvn clean install

Then to run it :

java -jar target/leshan-bsserver-rotkey-0.0.1-SNAPSHOT-jar-with-dependencies.jar

Output

Logs should help you to see what happened, e.g :

2021-02-03 16:13:57,576 INFO LeshanBootstrapServer - Bootstrap server started at coap://0.0.0.0/0.0.0.0:5683 coaps://0.0.0.0/0.0.0.0:5684
2021-02-03 16:14:10,886 INFO RotKeyServer$1 - Device try to connect using 'identity1' identity. (PSK expected 'AAAA')
2021-02-03 16:14:10,946 INFO RotKeyServer$2 - Try to apply new credentials 'identity2','BBBB'
2021-02-03 16:15:35,851 INFO RotKeyServer$1 - Device try to connect using 'identity1' identity. (PSK expected 'AAAA')
2021-02-03 16:15:35,858 INFO RotKeyServer$2 - Try to apply new credentials 'identity3','CCCC'
2021-02-03 16:17:43,029 INFO RotKeyServer$1 - Device try to connect using 'identity3' identity. (PSK expected 'CCCC')
2021-02-03 16:17:43,044 INFO RotKeyServer$2 - Try to apply new credentials 'identity4','DDDD'
2021-02-03 16:19:49,858 INFO RotKeyServer$1 - Device try to connect using 'identity4' identity. (PSK expected 'DDDD')
2021-02-03 16:19:49,869 INFO RotKeyServer$2 - Try to apply new credentials 'identity1','AAAA'
2021-02-03 16:21:56,760 INFO RotKeyServer$1 - Device try to connect using 'identity1' identity. (PSK expected 'AAAA')
2021-02-03 16:21:56,778 INFO RotKeyServer$2 - Try to apply new credentials 'identity2','BBBB'
2021-02-03 16:24:03,675 INFO RotKeyServer$1 - Device try to connect using 'identity2' identity. (PSK expected 'BBBB')
2021-02-03 16:24:03,696 INFO RotKeyServer$2 - Try to apply new credentials 'identity3','CCCC'

Need to change default config

Config is hardcoded, change code directly. See RotKeyServer

Need more logs

See change value in logback.xml

leshan-bsserver-rotkey's People

Contributors

sbernard31 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.