Hi Danny,
Regarding the wakaama bootstrap server .ini file, the PSK identity is set with the keyword “public”. For instance:
[Server]
id=3
uri=coaps://localhost:5684
bootstrap=no
lifetime=300
security=PSK
public=4f75724964656e74697479
secret=4F7572536563726574
Have a look at the README in tests/bootstrap_server.
- public: the client public key or identity as defined by resource /0/x/3
- server: the server public key as defined by resource /0/x/4
- secret: the private key or secret key as defined by resource /0/x/5
The credentials for the bootstrap server itself must be embedded in the client. This is why in the IPSO branch example the connection to the bootstrap server
is unsecure.
Regards,
David Navarro
From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx]
On Behalf Of Julien Vermillard
Sent: Tuesday, 1 December, 2015 10:51
To: Wakaama developer discussions <wakaama-dev@xxxxxxxxxxx>
Subject: Re: [wakaama-dev] bootstarp example
We tested the secure client with Leshan bootstrap server, I never tried to push credentials with the wakaama one.
On Tue, Dec 1, 2015 at 12:15 AM, Danny Salzman <c.danny.salzman@xxxxxxxxxx> wrote:
Hey David,
I am messing around with the secureClient example and was wondering what bootstrap server are you using for testing? The Leshan server or the Wakaama server?
Also how do you set the PSK and Identity for the Bootstrap server itself? I can see how you give the bootstrap server the other server credentials in the .ini file.
I see there are options to set PSK and Identity in the secureClient but no option for identity in the boostrap.ini config file. How do you specify the identity parameter of your leshan server in the config file?
Thanks for the great example!
HI David,
Thanks for the fix! I'll try it later.
Fixed in master.
Hi,
You do not miss anything. You made me realize I just broke the bootstrap process on the master branch.
I’m fixing this right now.
In the meantime, you can test the bootstrapping by switching to the branch “bootstrap_server”.
Sorry for that,
David Navarro
From:
wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx]
On Behalf Of Ricky Liu
Sent: Friday, 27 November, 2015 06:26
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] bootstarp example
Hi, I'm new here and just start to study LWM2M. :)
I build the bootstap server and test by client with -b . But seems the bootstrap server keep saying 4.00 (COAP_400_BAD_REQUEST).
Is there anything that I miss? or is there any doc for bootstap setting?
I did not modify bootstrap_server.ini and I guess it will return server object 2 and 3. After client get server and security info, the client will connect LWM2M server ?
Did I need to implement bootstrap process by myself?
ricky@ricky-VirtualBox:~/lwm2m/wakaama_b$ ./bootstrap_server
LWM2M Bootstrap Server now listening on port 5685.
> 31 bytes received from [127.0.0.1]:56830
44 02 44 6C 6C 44 CC E7 B2 62 73 4D 05 65 70 3D D.DllD...bsM.ep=
74 65 73 74 6C 77 6D 32 6D 63 6C 69 65 6E 74 testlwm2mclient
Parsed: ver 1, type 0, tkl 4, code 2, mid 17516
Bootstrap request from "testlwm2mclient"
Sending 8 bytes to [0.0.0.0]:56830
64 44 44 6C 6C 44 CC E7 dDDllD..
Sending 8 bytes to [0.0.0.0]:56830
44 04 35 C2 C2 35 CC E7 D.5..5..
8 bytes received from [127.0.0.1]:56830
64 42 35 C2 C2 35 CC E7 dB5..5..
Parsed: ver 1, type 2, tkl 4, code 2.02, mid 13762
Received status 2.02 (COAP_202_DELETED) for URI / from endpoint testlwm2mclient.
Sending 55 bytes to [0.0.0.0]:56830
44 03 35 C3 C3 35 CC E7 B1 30 01 32 FF C8 00 1E D.5..5...0.2....
63 6F 61 70 3A 2F 2F 6C 65 73 68 61 6E 2E 65 63 coap://leshan.ec
00 C1 0A 02 C1 02 03 .......
8 bytes received from [127.0.0.1]:56830
64 44 35 C3 C3 35 CC E7 dD5..5..
Parsed: ver 1, type 2, tkl 4, code 2.04, mid 13763
Received status 2.04 (COAP_204_CHANGED) for URI /0/2 from endpoint testlwm2mclient.
Sending 26 bytes to [0.0.0.0]:56830
44 03 35 C4 C4 35 CC E7 B1 31 01 32 FF C1 00 02 D.5..5...1.2....
C2 01 01 2C C1 06 00 C1 07 55 ...,.....U
8 bytes received from [127.0.0.1]:56830
64 80 35 C4 C4 35 CC E7 d.5..5..
Parsed: ver 1, type 2, tkl 4, code 4.00, mid 13764
Received status 4.00 (COAP_400_BAD_REQUEST) for URI /1/2 from endpoint testlwm2mclient.
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wakaama-dev
--
_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_wakaama-2Ddev&d=CwICAg&c=cebXj8esxOo4m4Cl4YJe9I0vxXvmHhari4dCzmlv0WM&r=g17UCjL4dIN4JkyLUjxfRKJUAENw20oXhGMliao5bY4&m=h2n8AnIDkwWw8Avd9YXXlCLy7tdw-YsILQykWXyI3sA&s=ojr60DfVM49lAMqu298eIx4wgJJDRaq4F3kxyAOeVhA&e=
_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wakaama-dev
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
|