> 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/manage-certificates/enabling-crl.md).

# CRL の有効化

証明書失効リスト (CRL) は、明示的に失効された証明書を含む記録です。

{% hint style="danger" %}
有効にする **必要は** ありません。SCEPman はデフォルトで失効確認に OCSP を使用します。
{% endhint %}

SCEPman は主に OCSP を使用して証明書の失効状態を確認します。OCSP はリアルタイムで失効を確認できるため、変化の多い作業環境に最適なプロトコルです。一方、CRL は定期的に更新されるため、時間に敏感なシナリオでの有効性には限界があります。

ただし、レガシーシステムやアプリケーションでは引き続き CRL が役立ちます。また、OCSP を利用できない場合のフォールバックとしても使用できます。

{% hint style="warning" %}
CRL には自動的に失効された証明書は含まれず、Certificate Master で明示的に失効された証明書のみが含まれます。
{% endhint %}

## ガイド

{% stepper %}
{% step %}

### 環境変数に移動します

Azure > App Services > SCEPman App Service（Certificate Master ではありません）> Settings > Environment Variables

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FBUKjjEZjaMW4aB9PW8Ck%2Fimage.png?alt=media&amp;token=ebfbb935-66e8-471b-8e1b-81d2cc5bb221" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 環境変数を追加する

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

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

<table><thead><tr><th width="247">設定</th><th width="291">説明</th><th>値</th></tr></thead><tbody><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-requesttoken">AppConfig__CRL__RequestToken</a></td><td><p>CRL の URL を定義します。CRL は DER と PEM の両方で利用できます。</p><p><br><strong>DER</strong>: https://<em>yourscepman</em>.azurewebsites.net/crl/<strong>{RequestToken}</strong></p><p><strong>PEM:</strong> https://yourscepman.azurewebsites.net/crl/pem/<strong>{RequestToken}</strong><br><br>例: https://<em>yourscepman</em>.azurewebsites.net/crl/12345678</p></td><td>24 文字の <em>文字列</em></td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-source">AppConfig__CRL__Source</a></td><td>CRL を Azure Storage アカウントに接続します</td><td>Storage</td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-addcdp">AppConfig__CRL__AddCdp</a></td><td>発行する証明書に CRL Distribution Point を追加します</td><td>true</td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-validitydays">AppConfig__CRL__ValidityDays</a></td><td>発行された CRL の有効日数</td><td><em>浮動小数点数</em><br>例 <em>0.1</em> 日数 = 2.4 時間</td></tr></tbody></table>
{% endtab %}

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

<table><thead><tr><th width="247">設定</th><th width="291">説明</th><th>値</th></tr></thead><tbody><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-requesttoken">AppConfig:CRL:RequestToken</a></td><td><p>CRL の URL を定義します。CRL は DER と PEM の両方で利用できます。</p><p><br><strong>DER</strong>: https://<em>yourscepman</em>.azurewebsites.net/crl/<strong>{RequestToken}</strong></p><p><strong>PEM:</strong> https://yourscepman.azurewebsites.net/crl/pem/<strong>{RequestToken}</strong><br><br>例: https://<em>yourscepman</em>.azurewebsites.net/crl/12345678</p></td><td>24 文字の <em>文字列</em></td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-source">AppConfig:CRL:Source</a></td><td>CRL を Azure Storage アカウントに接続します</td><td>Storage</td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-addcdp">AppConfig:CRL:AddCdp</a></td><td>発行する証明書に CRL Distribution Point を追加します</td><td>true</td></tr><tr><td><a href="https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/crl.md#appconfig-crl-validitydays">AppConfig:CRL:ValidityDays</a></td><td>発行された CRL の有効日数</td><td><em>浮動小数点数</em><br>例 <em>0.1</em> 日数 = 2.4 時間</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fh6CT186Onlo0Jcbpj2X6%2Fimage.png?alt=media&amp;token=99d58cb5-f431-40f8-928b-14a95611450f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 環境変数を適用する

環境変数を追加したら、Apply を押します。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FQKJWhPGTRLL3LyefIY00%2Fimage.png?alt=media&amp;token=bbcefc38-36be-4a9b-8359-f4bd3418b431" alt=""><figcaption></figcaption></figure>

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FuPk2gy1bwiosVnRiDhrv%2Fimage.png?alt=media&amp;token=ed75ae50-5cab-454e-924f-904c94e9e232" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### SCEPman App Service を再起動する

新しい環境変数は、SCEPman App Service の再起動後に適用されます。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FULK6GxJy09kLxYQ1AbXy%2Fimage.png?alt=media&amp;token=72cfbd74-049e-483e-892e-4b5dac1a2434" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### CRL をテストする

先ほど設定した Request Token を使って、次の形式の URL で CRL にアクセスします: https\://*yourscepman*.azurewebsites.net/crl/**{RequestToken}**

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FtADhHMEFdwU32z7e1hsM%2Fimage.png?alt=media&amp;token=ad633ca6-9696-44c5-8272-17b3f97996be" alt=""><figcaption></figcaption></figure>

正しく設定されていれば、CRL がダウンロードされます:

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FvVbjNdIPjCdoKyIP6T6G%2Fimage.png?alt=media&amp;token=9351e8d9-6dfb-4a16-b8c4-4edfd80f2b77" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### アプリケーションまたはシステムで CRL を使用する

有効にしたら、失効した証明書が使用されないよう、証明書の検証時に CRL を確認するようアプリケーションまたはシステムを設定してください。OCSP を利用できない場合のフォールバックとして CRL を使用できるシステムもあります。

その他のシステム **のみ** Entra の CBA などの失効に CRL のみを許可する場合は、こちらのガイドをご覧ください。

{% content-ref url="/pages/5160bb6b3dc3b90114ab94e6e8378d559848d642" %}
[Entra ID 向けの証明書ベース認証](https://docs.scepman.com/ja/scepman-no/deployment-guides/scenarios/certificate-based-authentication-for-entra-id.md)
{% endcontent-ref %}
{% 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/manage-certificates/enabling-crl.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.
