DeviceMgmtPki Data Type

Properties
name data type constraints description
privateKey string  
password string  
isDefault boolean required
caId number  
isCa boolean required
pkiStatus PkiStatus  
Properties inherited from EdcPki
id number required
certificate string  
accountId number required
version number required
serial string  
algorithm string  
subject string  
issuer string  
notBefore number  
notAfter number  
createdOn number  
createdBy number required
modifiedOn number  
modifiedBy number required
name string  
optlock number required The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

Example

{
  "privateKey" : "...",
  "password" : "...",
  "isDefault" : true,
  "caId" : 12345,
  "isCa" : true,
  "pkiStatus" : "REVOKED",
  "id" : 12345,
  "certificate" : "...",
  "accountId" : 12345,
  "version" : 12345,
  "serial" : "...",
  "algorithm" : "...",
  "subject" : "...",
  "issuer" : "...",
  "notBefore" : 12345,
  "notAfter" : 12345,
  "createdOn" : 12345,
  "createdBy" : 12345,
  "modifiedOn" : 12345,
  "modifiedBy" : 12345,
  "name" : "...",
  "optlock" : 12345
}