Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Client demo and Server Demo connection using PSK

Hello,

you may also use "-n" to provide the lwm2m endpoint name.

If you add your credentials, did you use "mgreer-HP-ProBook-640-G1" as "Client endpoint"?

You wrote 
> I am using "1234" for both the identity and the key (interpreted as hex for the key value)

But there are two additional fields the "Client endpoint" and the "Security mode". So what did you use for these fields?

Mit freundlichen Grüßen / Best regards 

Achim Kraus

(INST/ECS4) 
Bosch Software Innovations GmbH | Stuttgarter Straße 130 | 71332 Waiblingen | GERMANY | http://www.bosch-si.com 

Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr.-Ing. Rainer Kallenbach, Michael Hahn



From: leshan-dev-bounces@xxxxxxxxxxx [mailto:leshan-dev-bounces@xxxxxxxxxxx] On Behalf Of GREER, MICHAEL R
Sent: Dienstag, 18. Juli 2017 18:15
To: leshan developer discussions <leshan-dev@xxxxxxxxxxx>
Subject: Re: [leshan-dev] Client demo and Server Demo connection using PSK

Hello, thanks for the response.

The <client name> in this case is "mgreer-HP-ProBook-640-G1"

I initially gave the local ip and the port number of the client, but the server complained about there not being a security profile for the endpoint "mgreer-HP-ProBook-640-G1", so I changed the profile to match.

I am using "1234" for both the identity and the key (interpreted as hex for the key value)

I am using the most current build of Leshan

My exact command is "java -jar leshan-client-demo.jar -i 1234 -p 1234"

Thank you,
Michael


From: mailto:leshan-dev-bounces@xxxxxxxxxxx [mailto:leshan-dev-bounces@xxxxxxxxxxx] On Behalf Of Kraus Achim (INST/ECS4)
Sent: Tuesday, July 18, 2017 11:01 AM
To: leshan developer discussions <mailto:leshan-dev@xxxxxxxxxxx>
Subject: Re: [leshan-dev] Client demo and Server Demo connection using PSK

Hello,

What's the <client name> you used to start the client?
Which values did you use to add credentials?
Which leshan version do you use? 

Mit freundlichen Grüßen / Best regards 

Achim Kraus

(INST/ECS4) 
Bosch Software Innovations GmbH | Stuttgarter Straße 130 | 71332 Waiblingen | GERMANY | https://urldefense.proofpoint.com/v2/url?u=http-3A__www.bosch-2Dsi.com&d=DwMFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=sVHW4HXIek55PgmUp7kYQw&m=WMy-hyHGiapkDlj0KNJzdCEBc3W_mZamEMAHoZoYb68&s=bUiWc4ANpU2_8LbMPoK_v9pnz25hU712n7yiwQO3yhw&e= 
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr.-Ing. Rainer Kallenbach, Michael Hahn

From: mailto:leshan-dev-bounces@xxxxxxxxxxx [mailto:leshan-dev-bounces@xxxxxxxxxxx] On Behalf Of GREER, MICHAEL R
Sent: Dienstag, 18. Juli 2017 17:54
To: mailto:leshan-dev@xxxxxxxxxxx
Subject: [leshan-dev] FW: Client demo and Server Demo connection using PSK

Hello,

I am attempting to get the leshan client demo to connect to the leshan server demo over coaps using PSK. I am adding a new security profile to the server using the http interface on 8080, and I am providing the same pskid and psk to the client using -i and -p flags. 

When the client attempts to connect, the server shows an debug message saying "Client '<client name>' without security info try to connect through the secure endpoint".

Is the PSK feature functional on the standard leshan server demo, or is it only available on the bootstrap server? Am I missing more security fields, besides pskid and psk?

Thank you,
Michael Greer


Michael Greer
TDP Product Development Intern, AT&T IoT Foundry
940-368-9701



Back to the top