Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

DecryptCertificate

Type
Function
Sender
SDL
Purpose
To decrypt the certificate received via the updated policy table
Note

Currently, the RPC is sent by SDL only if the EXTERNAL_PROPRIETARY policy mode is enabled.

Request

Parameters

Name Type Mandatory Additional Description
fileName String true minlength: 1
maxlength: 255
The path to the file with the encrypted certificate from the PolicyTable

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

Example Request

{
  "id": 35,
  "jsonrpc": "2.0",
  "method": "BasicCommunication.DecryptCertificate",
  "params": {
    "fileName": "/home/user/sdl_build/bin/storage/certificate.pem"
  }
}

Example Response

{
  "result": {
    "method": "BasicCommunication.DecryptCertificate",
    "code": 0
  },
  "id": 35,
  "jsonrpc": "2.0"
}

Example Error

{
  "error": {
    "code": 4,
    "message": "Cert is not decrypted",
    "data": {
      "method": "BasicCommunication.DecryptCertificate"
    }
  },
  "id": 42,
  "jsonrpc": "2.0"
}
View on GitHub.com
Previous Section Next Section