Hi developers.

 

I’m trying to make Secure server-client application, With justworks +
symmetric Pair-wise key

 

I tried this list.

1.     Make svr_db_client(server).dat files from json2cbor tool.
(reference: ocserverbasicops)

A.     Setting up anon-clear & auth-crypt acls.

B.      Pstat part.(I just paste code. But rowneruuid is modified.)

C.      Filling cred settings.(deviceuuid, devowneruuid,…)

2.     Add Persistent storage In server.cpp(OC_SERVER),
client.cpp(OC_CLIENT_SERVER)

3.     CreateResource with OC_DISCOVERABLE | OC_SECURE.

4.     Build (scons SECURED=1 RELEASE=0)

Then, applications are load data from svr_db files.

 

But 2 problems here…

1.     client send get request to /a/light resource, response code is
always OC_UNAUTHORIZE_REQ and payload is null.

And look up server log, ctx->subjectuuid is 0000000-0000-0000-0000-
000000000000, nil uuid is cannot used secureChannels.

How can I set ctx->subjectuuid?

2.     When client send get request to /oic/res, some resources secure?
property set false.

How can I all resource make secure?

 

I hope Someone know this.

 

Thanks.

Jh kim

_______________________________________________
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to