From kaa documentation, when updating server-side endpoint profile via AdminRest API, the developer needs to specify 3 parameters
I wonder where I (a kaa developer) can obtain the endpointProfileKey of the endpoint to perform this action?
Update
Ok, I have find the answer from Kaaproject forums on google groups. Thanks Peter Krutsiuk :)
EndpointKeyHash is basically a base64 string representation of endpoint public key (key.public). key.public and key.private are generated by SDK during start up if this files are not present in a working directory of an application. Note: Activation demo have three modes:
Best regards, Peter.
And my question now is whether I'm be able to specify this endpointProfileKey at manufacturing time (before it goes online). For example, generate a RSA key pair my self and put it in the running directory before launching the application, is it possible? Thanks!
Yes, you can use pre-generated RSA key pair (public and private), put them into the device's directory and then (when your device will go online) provision them via Kaa REST API to register your endpoint on Kaa Server.
You can see an example of credentials provisioning for Java in "Credentials Java Admin demo" of section "Credentials demos" in Kaa Sandbox.
In the same way, as it is done in this demo, you can use AdminClient (org.kaaproject.kaa.server.common.admin.AdminClient) from Kaa Project to work with Admin REST API.