# 失効

SCEPman では、証明書を管理および失効させるためのいくつかの方法を提供しています。利用可能なオプションは、

* 証明書が MDM ソリューション経由で自動登録されたか、または [Certificate Master UI](/ja/zheng-ming-shu-guan-li/certificate-master.md) / [Enrollment REST API](/ja/zheng-ming-shu-guan-li/api-certificates.md),
* (自動) 登録に使用される MDM システム、および
* SCEPman の構成に依存します。

以下のセクションでは、さまざまな管理オプションと失効メカニズムの概要、およびそれらがどのような状況で利用可能かを示します。

## 自動失効

{% hint style="info" %}
次の場合にのみ利用可能です **Microsoft Intune** および/または **Jamf Pro** が証明書の登録に MDM ソリューションとして使用されている場合です。あるいは、Microsoft Entra ID (Azure AD) とデバイスおよび/またはユーザー オブジェクトを同期できる任意のサードパーティ MDM でも利用可能です（つまり [Static AAD Validation](/ja/scepman-gou-cheng/application-settings/scep-endpoints/staticaad-validation.md) を使用できます）。
{% endhint %}

{% hint style="success" %}
でサポートされています **OCSP**.
{% endhint %}

### 背景

自動失効は **常に有効** であり、各証明書をユーザーやデバイス ID などのディレクトリ オブジェクトに関連付けることで、便利な証明書ライフサイクル管理を可能にします。このオブジェクト バインディング メカニズムにより、SCEPman は、関連付けられているオブジェクトの特定のライフサイクル特性に基づいて失効状態を推測できます。オブジェクトのライフサイクル状態から証明書の失効状態へのマッピングは、セキュリティとエンドポイント管理の長年の経験に基づくベストプラクティスに一致するように実装されています。&#x20;

ディレクトリ オブジェクト（ユーザーまたはデバイス）と証明書の関連付けは、Subject Name または Subject Alternative Name プロパティの SCEP プロファイルに適切な変数を導入することで確立されます。MDM 管理クライアントから Certificate Signing Request (CSR) を受信すると、SCEPman は関連付けられたオブジェクトを識別し、その情報を証明書をクライアントに返す前に証明書のシリアル番号にエンコードします。証明書の検証中に SCEPman の OCSP レスポンダーへ送信されるのはこのシリアル番号であり、これにより SCEPman はオブジェクト情報をデコードし、適切なディレクトリを検索して、最終的に失効状態を判断できます。

### 失効の動作

{% hint style="success" %}
以下のいずれのシナリオでも、関連付けられたオブジェクトの状態が変化した時点で、失効は即時に有効と見なすことができます。ただし、クライアント側の OCSP 応答のローカル キャッシュにより、そうでないように見える場合があります。
{% endhint %}

{% hint style="warning" %}
テスト中は、それぞれのディレクトリ/MDM ソリューションからデバイスを削除/除去する操作は元に戻せないため、その後デバイスを再登録する必要があることにご注意ください。
{% endhint %}

<table><thead><tr><th width="262">関連付けられたオブジェクト</th><th>ディレクトリから削除</th><th>ディレクトリで無効化</th><th>任意 </th></tr></thead><tbody><tr><td>Intune Device <code>{{DeviceId}}</code></td><td><strong>Delete</strong>, <a href="https://learn.microsoft.com/en-us/mem/intune/remote-actions/devices-wipe#wipe"><strong>Wipe</strong></a><strong>*</strong>, <a href="https://learn.microsoft.com/en-us/mem/intune/remote-actions/devices-wipe#retire"><strong>Retire</strong></a><strong>*</strong>: <em>恒久的な失効</em></td><td>利用不可</td><td><ul><li><a href="/pages/0501017fba30c565e02b26b8e27fe3629d3aac09#appconfig-intunevalidation-compliancecheck"><strong>Intune Device Compliance</strong></a>: <em>可逆的な失効</em></li><li><a href="https://docs.scepman.com/advanced-configuration/application-settings/intune-validation#appconfig-intunevalidation-devicedirectory:~:text=The%20value%20AADAndIntuneAndEndpointlist"><strong>Endpoint List</strong></a>: <em>恒久的な失効</em></li></ul></td></tr><tr><td>Entra (Azure AD) Device<br><code>{{AAD_Device_ID}}</code><br></td><td><strong>Delete</strong>: <em>恒久的な失効</em></td><td><strong>無効化</strong>: <em>可逆的な失効</em></td><td><ul><li><a href="/pages/0501017fba30c565e02b26b8e27fe3629d3aac09#appconfig-intunevalidation-compliancecheck"><strong>Entra (Azure AD) Device Compliance</strong></a>: <em>可逆的な失効</em></li><li><a href="https://docs.scepman.com/advanced-configuration/application-settings/intune-validation#appconfig-intunevalidation-devicedirectory:~:text=The%20value%20AADAndIntuneAndEndpointlist"><strong>Endpoint List</strong></a>: <em>恒久的な失効</em></li></ul></td></tr><tr><td>Entra (Azure AD) User<br><code>{{UserPrincipalName}}</code></td><td><strong>Delete</strong>: <em>恒久的な失効</em></td><td><strong>無効化</strong>: <em>可逆的な失効</em></td><td><ul><li><a href="/pages/0501017fba30c565e02b26b8e27fe3629d3aac09#appconfig-intunevalidation-waitforsuccessnotificationresponse"><strong>User Risk</strong></a>: <em>可逆的な失効</em></li><li><a href="https://docs.scepman.com/advanced-configuration/application-settings/intune-validation#appconfig-intunevalidation-devicedirectory:~:text=The%20value%20AADAndIntuneAndEndpointlist"><strong>Endpoint List</strong></a>: <em>恒久的な失効</em></li></ul></td></tr><tr><td><a href="/pages/885b7871a7cebfc492ecaf37c8a2f9be96d34abc">Jamf Computer</a><br><code>CN=$JSSID,OU=computers</code></td><td><strong>Delete</strong>: <em>恒久的な失効</em></td><td>利用不可</td><td>利用不可</td></tr><tr><td><a href="/pages/48ee79492c73214d682b091182ca885252ef5312">Jamf Device</a><br><code>CN=$JSSID,OU=devices</code></td><td><strong>Delete</strong>: <em>恒久的な失効</em></td><td>利用不可</td><td>利用不可</td></tr><tr><td><a href="/pages/b0747081a7da6745eae8225492aef44a53ae180e#user-certificates-on-computers">Jamf User on Computer</a><br><code>CN=$JSSID,OU=users-on-computers</code><br></td><td><ul><li><strong>削除（コンピューター）</strong>: <em>恒久的な失効</em></li><li><strong>削除（ユーザー）</strong>: <em>恒久的な失効</em></li></ul></td><td>利用不可</td><td>利用不可</td></tr><tr><td><a href="/pages/b0747081a7da6745eae8225492aef44a53ae180e#user-certificates-on-devices">Jamf User on Device</a><br><code>CN=$JSSID,OU=users-on-devices</code></td><td><ul><li><strong>削除（デバイス）</strong>: <em>恒久的な失効</em></li><li><strong>削除（ユーザー）</strong>: <em>恒久的な失効</em></li></ul></td><td>利用不可</td><td>利用不可</td></tr></tbody></table>

\*: Wipe 中は、「Wipe device, but keep enrollment state and associated user account」が **無効化できます**であることを確認してください。失効が即時となるのは、 [AppConfig:IntuneValidation:RevokeCertificatesOnWipe](/ja/scepman-gou-cheng/application-settings/scep-endpoints/intune-validation.md#appconfig-intunevalidation-revokecertificatesonwipe) が true（既定値）に設定されている場合のみです。

## 手動失効

{% hint style="warning" %}
SCEPman Enterprise Edition のみ
{% endhint %}

{% hint style="info" %}
この機能にはバージョン **2.3** 以上が必要です。
{% endhint %}

{% hint style="success" %}
でサポートされています **OCSP** および [**CRL**](/ja/scepman-gou-cheng/application-settings/crl.md).
{% endhint %}

### 背景

手動失効は、SCEPman によって発行されたすべての証明書に対して利用できます。MDM 経由で自動登録されたもの、Certificate Master で手動発行されたもの、または Enrollment REST API で展開されたものは問いません。手動失効は、自動失効が利用できない場合や、自動失効の経路だけでは特定の要件を満たせない場合に有用です。

手動失効を容易にするため、SCEPman は発行する証明書の特定のメタデータを保存する必要があります。Certificate Master UI と Enrollment REST API 経由で発行された証明書については既定でこれが行われますが、他の証明書タイプでは行われません。したがって、 [関連設定](#storing-certificate-metadata-in-the-certificate-database) を要件に応じて確認してください。&#x20;

Certificate Master とその検索・フィルター オプションを活用して手動失効がどのように処理されるかを知るには、読み進めてください。

### Certificate Master

SCEPman Certificate Master を使用すると、SCEPman PKI が発行した証明書を検索、確認、管理できます:

{% content-ref url="/pages/64fe198a8bf5d86e7c799e649274e13e6b73751d" %}
[証明書の管理](/ja/zheng-ming-shu-guan-li/certificate-master/manage-certificates.md)
{% endcontent-ref %}

## 自動失効と手動失効

SCEPman は、OCSP 要求が届いたときに証明書が有効かどうかを判定するため、さまざまな失効情報ソースを使用します。さらに、SCEPman の失効ロジックは **OR で結合するアプローチ**に従っています。つまり、いずれかの失効ソースがその証明書を無効と判定した場合、失効済みとして報告されます。自動失効が手動失効より優先される、あるいはその逆の優先順位はありません。&#x20;

なお、Certificate Master の表に表示されるのは手動失効の状態のみであり、他のソースは表示されません。そのため、たとえば対応するデバイスが Intune で削除された（自動失効）場合など、実際には失効済みと見なされていても、表では有効として表示されることがあります。&#x20;

## さらに読む

* 上記のいくつかのシナリオにおける（自動）失効のテスト方法と証明書の有効性のトラブルシューティングに関する情報は [こちら](/ja/sono/troubleshooting/general.md#problems-with-the-validity-of-certificates).
* Azure および M365 のデバイス ディレクトリに関する一般情報は [こちら](/ja/scepman-gou-cheng/device-directories.md).


---

# 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.scepman.com/ja/zheng-ming-shu-guan-li/manage-certificates.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.
