# 暗号化されたJSONの設定プロパティ

{% hint style="info" %}
ここに記載したプロパティは、JSON認証を使用している場合にのみ適用されます。暗号化されたJSON認証のサポートは、[`kcm-guacamole-auth-json`パッケージを使用してインストール](https://newdocs.keeper.io/kcm-linux-rpm-method/using-keeper-connection-manager/dynamic-connections)します。[keeper/guacamoleのDockerイメージ](/keeper-connection-manager/jp/installation/docker-compose-install/keeper-guacamole.md)を使用する場合、暗号化されたJSON認証のサポートは、環境変数を使用して設定します。
{% endhint %}

### JSON共有秘密鍵 <a href="#id-.encryptedjsonconfigurationpropertiesv1.x-sharedjsonsecretkey" id="id-.encryptedjsonconfigurationpropertiesv1.x-sharedjsonsecretkey"></a>

共有秘密鍵は、JSONデータを生成するシステムによるJSONの暗号化と署名、およびGuacamoleサーバーによる受信データの検証と復号化に使用されます。**この鍵は128ビットで、32桁の16進数で指定する必要があります。**

| プロパティ名            | 説明                                                                                                        |
| ----------------- | --------------------------------------------------------------------------------------------------------- |
| `json-secret-key` | 認証のためにGuacamoleに送信されるJSONの暗号化と署名に使用される128ビットの秘密鍵（32桁の16進数形式）。受信したJSONは、この鍵を使用して暗号化および署名されていない限り受け入れられません。 |

この鍵は、予測不能である限り、基本的に何でも指定できます。このような鍵を生成する簡単な方法は、「md5sum」ユーティリティにパスフレーズをechoコマンドで入力することです。これは、パスフレーズから128ビット鍵を生成するためにOpenSSL自体が使用している手法です。以下に例を示します。

```
$ echo -n "ThisIsATest" | md5sum
4c0b569e4c96df157eee1b65dd0e4d41 -
$
```

### 送信元ネットワークの制限 <a href="#id-.encryptedjsonconfigurationpropertiesv1.x-sourcenetworkrestrictions" id="id-.encryptedjsonconfigurationpropertiesv1.x-sourcenetworkrestrictions"></a>

デフォルトでは、受信した暗号化されたJSONは、有効かつ秘密鍵の正しい署名がある限り受け入れられます。さらに、暗号化されたJSONの受け入れを、信頼できるIPアドレスやCIDRサブネットのコンマ区切りリストに一致するマシンからのみに制限することもできます。

| プロパティ名                  | 説明                                                                                                     |
| ----------------------- | ------------------------------------------------------------------------------------------------------ |
| `json-trusted-networks` | 暗号化されたJSONを使用した認証を許可する必要のあるIPアドレスやCIDRサブネットのコンマ区切りリスト。デフォルトでは、暗号化されたJSONはどのアドレスやサブネットからでも制限なく受け入れられます。 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/encrypted-json-configuration-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
