Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
DecryptCertificate

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

JSON Message Examples

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