eclipse-leshan / leshan

Java Library for LWM2M
https://www.eclipse.org/leshan/
BSD 3-Clause "New" or "Revised" License
653 stars 408 forks source link

Demo server configure PSK ID and PSK content #1601

Closed pmartinez-tst closed 7 months ago

pmartinez-tst commented 7 months ago

Question

I want to test DTLS in my application. I have seen how to configure psk id (-i) and psk content (-p) on the demo client but I cannot see anything similar on the demo server. I have checked the documentation and see that on the Californium.properties file I can tweak some parameters.

I have modified DTLS.DEFAULT_HANDSHAKE to required but I cannot see where I can write the PSK content and id values when I start the server. -i and -p tags does not work on the demo server

sbernard31 commented 7 months ago

You should use the UI to add corresponding credentials for your device.

Click on Security Tab in top right corner.

sbernard31 commented 7 months ago

let me know if that solve your issue and if we can close the issue.

pmartinez-tst commented 7 months ago

Thank you @sbernard31 it solved it. I did not know I could set those parameters on the web.

sbernard31 commented 7 months ago

You're welcome