> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/zheng-ming-shu-guan-li/static-certificates/mosyle.md).

# Mosyle

SCEPman を External CA として接続することで、Mosyle で証明書を発行します。デバイスは、SCEPman の静的インターフェースと登録済みのチャレンジ パスワードを使用して証明書を取得できます。

他の MDM ソリューションと SCEPman の統合に関する一般的な情報については、 [こちら](https://docs.scepman.com/ja/zheng-ming-shu-guan-li/static-certificates.md).

{% stepper %}
{% step %}

### Mosyle 統合を有効にする

Mosyle と SCEPman の統合は、次の SCEPman アプリ構成で簡単に有効にできます。

{% hint style="info" %}
SCEPman App Service と Certificate Master は、App Service 名に **含まれていない** 「-cm」の有無で見分けることができます。
{% endhint %}

App Service のオペレーティングシステムに応じた設定名を使用してください。

{% tabs %}
{% tab title="Linux" %}
Linux App Service では、コロンの代わりに二重アンダースコア（`__`）を使用します。

|                                                                                                                 設定                                                                                                                 | 説明                                                                                                                                                                                                                                           |                    値                    |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------: |
|                        [AppConfig\_\_StaticValidation\_\_Enabled](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-enabled)                       | サードパーティ検証を有効にする                                                                                                                                                                                                                              |   **true** 有効にする場合、 **false** 無効にする場合   |
|                [AppConfig\_\_StaticValidation\_\_RequestPassword](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-requestpassword)               | <p>署名のために SCEPman に送信される証明書署名要求は、この安全な静的パスワードで認証されます。<br><br><strong>推奨事項</strong>：このシークレットは <a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings.md#secure-configuration-in-azure-key-vault">Azure KeyVault</a>.</p> |       *に保存し、32 文字のパスワードを生成してください。*      |
|          [AppConfig\_\_StaticValidation\_\_ValidityPeriodDays](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-validityperioddays) （任意）          | Mosyle 経由で発行される証明書の有効期間（日数）                                                                                                                                                                                                                  |                   365                   |
| [AppConfig\_\_StaticValidation\_\_EnableCertificateStorage](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/staticaad-validation.md#appconfig-staticaadvalidation-enablecertificatestorage) （任意） | 要求された証明書を Storage Account に保存し、SCEPman Certificate Master に表示できるようにします。                                                                                                                                                                      | ***true*** 有効にする場合、 ***false** 無効にする場合* |
|                                                                                                            {% endtab %}                                                                                                            |                                                                                                                                                                                                                                              |                                         |

{% tab title="Windows" %}
Windows App Service では、設定名にコロン（`:`）を使用します。

|                                                                                                              設定                                                                                                              | 説明                                                                                                                                                                                                                                           |                    値                    |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------: |
|                        [AppConfig:StaticValidation:Enabled](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-enabled)                       | サードパーティ検証を有効にする                                                                                                                                                                                                                              |   **true** 有効にする場合、 **false** 無効にする場合   |
|                [AppConfig:StaticValidation:RequestPassword](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-requestpassword)               | <p>署名のために SCEPman に送信される証明書署名要求は、この安全な静的パスワードで認証されます。<br><br><strong>推奨事項</strong>：このシークレットは <a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings.md#secure-configuration-in-azure-key-vault">Azure KeyVault</a>.</p> |       *に保存し、32 文字のパスワードを生成してください。*      |
|          [AppConfig:StaticValidation:ValidityPeriodDays](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/static-validation.md#appconfig-staticvalidation-validityperioddays) （任意）          | Mosyle 経由で発行される証明書の有効期間（日数）                                                                                                                                                                                                                  |                   365                   |
| [AppConfig:StaticValidation:EnableCertificateStorage](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/scep-endpoints/staticaad-validation.md#appconfig-staticaadvalidation-enablecertificatestorage) （任意） | 要求された証明書を Storage Account に保存し、SCEPman Certificate Master に表示できるようにします。                                                                                                                                                                      | ***true*** 有効にする場合、 ***false** 無効にする場合* |
|                                                                                                         {% endtab %}                                                                                                         |                                                                                                                                                                                                                                              |                                         |
|                                                                                                         {% endtabs %}                                                                                                        |                                                                                                                                                                                                                                              |                                         |

{% hint style="info" %}
SCEPman の構成パラメーターを追加または編集した後は、アプリ サービスを再起動する必要があります。
{% endhint %}
{% endstep %}

{% step %}

### SCEPman のルート証明書を展開する

まず、SCEPman のルート証明書を展開します。この CA 証明書は、SCEPman の Web サイトからダウンロードしてください。

![SCEPman の Web サイト](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-9170eb0435726398eb43f6fac8abd0d5f35e8cc4%2FSCEPmanHomePage%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(2\)%20\(1\)%20\(2\).png?alt=media)

Mosyle で「**複数証明書プロファイル**」に移動し、新しいプロファイルの種類として追加します（まだ存在しない場合）。

次に、 **プロファイルを追加** をクリックし、このプロファイルの名前（例: SCEPman Root CA）を入力して、 **+ADD PROFILE** を「プロファイル名」の下でクリックします（下のスクリーンショットを参照）。**,** 表示されたウィンドウで「証明書プロファイルを追加」を選択します。次に、ダウンロード済みの SCEPman ルート証明書を選択してアップロードし、「プロファイル名」に「SCEPman Root CA」と入力して、「保存」をクリックします。

![ルート CA プロファイルの追加](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-b1a87554a9fcd9fced251a856bd7976601fa834a%2F2022-07-25%2009_56_09-Glueckkanja%20GAB%20and%201%20more%20page%20-%20Work%20-%20Microsoft%E2%80%8B%20Edge.png?alt=media)

![ルート CA のアップロード](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-a87d5c4e48811609296cf9a99b2f5e43d9bd4c82%2F2022-07-25%2010_04_49-Window.png?alt=media)

次に、このプロファイルをデバイスまたはユーザーに割り当てて、「保存」をクリックします。

![ルート CA プロファイルの保存](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-9387a570f6fe9c4cd1447f31126b33ec41151706%2F2022-07-25%2010_07_23-Window.png?alt=media)

保存後、プロファイルの「詳細を表示」をクリックすると、準拠状況を確認できます。

![プロファイルの配布状況](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-ac4884821ea581415bcaea1afbffca4dc014c9ef%2F2022-07-25%2010_10_27-Window.png?alt=media)
{% endstep %}

{% step %}

### デバイス証明書を展開する

新しいプロファイルを追加し、プロファイル名（例: SCEPman Device Certificate）を入力して、 **+ADD PROFILE,** 次に、 **SCEP プロファイル** を選択し、以下に示す値を入力します。

![SCEPプロファイルの設定](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-561c37170b07a41faf043cff9eded597746bd3ca%2F2022-07-25%2011_41_51.png?alt=media)

![SCEPプロファイルの設定](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-ee60a06b623abe7b415b374fe4e8037db5900a20%2F2022-07-25%2011_29_43.png?alt=media)

**プロファイル名:** プロファイル名を入力します

**サーバー:** URL を選択します

**URL:** スクリーンショットに示すように、末尾に **/static** を付けて、SCEPman の URL を入力します。この値は、SCEPman のホームページにある **Static MDM**

**サブジェクト:** サブジェクトに使用する変数は自由に選択できます。相対識別名（RDN）は 1 つでも複数でも選択できます。RDN は必ず **/** で始まることに注意してください。例:

`/CN=%DeviceName%` はデバイス名を表します。スクリーンショットの例では RDN を 3 つ追加していますが、CN を複数指定することもできます。フィールドの上にある **使用可能な変数を表示** をクリックすると、変数の一覧を確認できます。

**サブジェクト代替名** は任意です。

**チャレンジ:** SCEPman の構成で設定した 32 文字のチャレンジ パスワードを入力します。 [「Mosyle 統合を有効にする」を参照してください](#enable-mosyle-integration)

**キーサイズ：** 2048

次の2つのオプション「**署名に使用**」と「**暗号化に使用**」を有効にし、他の設定はすべてデフォルトのまま（スクリーンショットのように）にしてから、 **保存**

次に、このプロファイルをデバイスまたはユーザーに割り当ててから、 **保存**.

保存後、プロファイルの「詳細を表示」をクリックすると、準拠状況を確認できます。

![プロファイルの配布状況](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-94ac69b5cffff379d7efdcfd91a35dae79d1a6b7%2F2022-07-25%2011_55_57-Window.png?alt=media)
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.scepman.com/ja/zheng-ming-shu-guan-li/static-certificates/mosyle.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
