Get Server encryption public keys

Request Parameters

Request does not contain parameters.

 

Request Example

http://192.168.1.1:9080/api/server/public-key.ds

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1558521947" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <keys>
     <key id="f001bf9c-7149-40db-b104-0227ae882b66" active="true">
        <value>
           <![CDATA[1234567890ABCDEFGHIJKLMNOPQRSTVUWXYZ1234567890ABCD]]>
        </value>

        <file>
           <![CDATA[; Dr.Web (R) Public key file
                    ; Do not edit!
                    f001bf9c-7149-40db-b104-0227ae882b66
                    1234567890ABCDEFGHIJKLMNOPQRSTVUWXYZ1234567890ABCD
                    ; ***EOF***]]>
        </file>
     </key>
  </keys>
</drweb-es-api>

 

Description of XML Response Parameters

The <keys /> element contains information on all public encryption keys of the Server.

The <key /> element contains information on a specific public encryption key.

The <key /> element attributes:

Attribute

Description

id

Identifier of a public encryption key

active

Activity of a public encryption key:

true—the key is currently active,

false—the key is inactive

The <key /> nested elements:

Element

Description

<value />

the public encryption key itself

<file />

Content of the public encryption key file

 

JSON Response

{ "head": {
    "status": true,

    "timestamp": 1558522034,

    "api": {
      "version": 40300,
      "versionString": 4.3.0},

    "server": {
      "name": "192.168.1.1",

      "version": "12.00.0.201909260",
      "uuid": "27671337-e0b0-4f60-aeb0-ab1f2ca47f77"}},

"data": {
    "keys": [
      {"active": true,

        "file": "; Dr.Web (R) Public key file\n
                 ; Do not edit!\f001bf9c-7149-40db-b104-0227ae882b66\n
                 1234567890ABCDEFGHIJKLMNOPQRSTVUWXYZ1234567890ABCD\n
                ; ***EOF***\n",
        "uuid": "f001bf9c-7149-40db-b104-0227ae882b66",

        "value": "1234567890ABCDEFGHIJKLMNOPQRSTVUWXYZ1234567890ABCD"}]}}

 

Description of JSON Response Parameters

The keys array contains information on all public encryption keys of the Server.

The keys array objects elements:

Field name

Description

active

Activity of a public encryption key:

true—the key is currently active,

false—the key is inactive

file

full content of the public encryption key file

uuid

Identifier of a public encryption key

value

the public encryption key itself