> 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/api-certificates/self-service-enrollment.md).

# セルフサービス登録

{% hint style="info" %}
SCEPman バージョン 2.9 以降に適用されます
{% endhint %}

SCEP を使わずにクライアントが自分自身の証明書を登録するには、SCEPman REST API を使用できます。ただし、任意の証明書を登録できるべきではなく、自分の ID に関連付けられた証明書だけを登録できるようにする必要があります。そのため、SCEPman API には、この機能を有効にするためにユーザー/グループに割り当てられるロールがあります。

## 前提条件

* このロールは SCEPman 2.9 以降に含まれています。これより前に SCEPman をインストールした場合は、次を実行する必要があります [インストール スクリプト](/ja/scepman-nodepuroi/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet) もう一度実行して、このロールが表示されるようにします。

## セルフサービス権限の割り当て

SCEPman-api のアプリ登録に Self Service ロールが存在することを確認できます:

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FNKRfCaiolQQRMoVZ4KIu%2Fimage.png?alt=media&amp;token=0237fecc-2935-47a5-8e06-39cb7ca2b772" alt=""><figcaption></figcaption></figure>

SCEPman-api のエンタープライズ アプリケーションで、ユーザーとグループに対するロール割り当てを作成できます。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FsTrrI2sHpugkm3U5fx6v%2Fimage.png?alt=media&amp;token=23f31d76-bc00-418d-92c9-77274dddc286" alt=""><figcaption></figcaption></figure>

## 証明書登録要求

self-service ロールを持つユーザーは、以下の属性を持つ証明書のみを登録できます。（これは、SCEP プロファイルを使用して証明書を登録するときに選択する属性と同じです [Intune ](/ja/zheng-ming-shu-guan-li/microsoft-intune.md)たとえば）。証明書の有効性は、Intune または Entra ID のデバイス オブジェクト、あるいは Entra ID のユーザー オブジェクトに関連付けられ、Intune で登録された証明書と同様になります。

{% hint style="info" %}
弊社の事前提供の登録スクリプトを使用している場合は、 [「使用例」セクション](/ja/use-cases.md)これらの要件に従って要求が自動的に生成されます。
{% endhint %}

### デバイス証明書

件名代替名（SAN）には、次のいずれかを含める必要があります `IntuneDeviceID://<IntuneDeviceId>` URI として。ここで `<IntuneDeviceId>` 中かっこを除いた \<IntuneDeviceId> は、Intune のデバイスの Device ID です。あるいは、件名の CN フィールドが Entra ID のデバイス ID または Intune の Device ID である必要があります。

<table><thead><tr><th width="223">項目</th><th>Value</th></tr></thead><tbody><tr><td>サブジェクト</td><td><code>CN=&#x3C;AAD_Device_Id></code> または <code>CN=&#x3C;DeviceId></code>そのデバイスはユーザー所有のデバイスです。</td></tr><tr><td>SAN（URI）</td><td><code>IntuneDeviceId://&#x3C;IntuneDeviceId></code></td></tr><tr><td>基本制約</td><td><code>Subject Type=End Entity</code></td></tr><tr><td>EKU</td><td><code>Client Authentication, 1.3.6.1.5.5.7.3.2</code></td></tr></tbody></table>

### ユーザー証明書

<table><thead><tr><th width="221">項目</th><th>Value</th></tr></thead><tbody><tr><td>サブジェクト</td><td><code>CN=&#x3C;DisplayName></code></td></tr><tr><td>SAN（その他の名前/UPN）</td><td><code>&#x3C;UserPrincipalName></code></td></tr><tr><td>基本制約</td><td><code>Subject Type=End Entity</code></td></tr><tr><td>EKU</td><td><code>Client Authentication, 1.3.6.1.5.5.7.3.2</code></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.scepman.com/ja/zheng-ming-shu-guan-li/api-certificates/self-service-enrollment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
