> 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/sono/faqs/general.md).

# 一般

## ライセンスキーを追加するには？

Community Edition を Enterprise Edition にアップグレードするには、アプリの設定にライセンスキーを追加する必要があります。仕組みは次の章で説明します:

1. 次へ移動 **App Services**.
2. 次に、SCEPman アプリを選択します。
3. 次に、 **設定** クリックします **環境変数**.
4. 選択 [**AppConfig:LicenseKey**](/ja/scepman-gou-cheng/application-settings/basics.md#appconfig-licensekey).
5. 下の **値**にライセンスキーを入力します。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FWUw36MkAk4UZGN6eICea%2Fimage.png?alt=media&amp;token=d49abc04-cea9-40cd-8a82-691c213c7c00" alt=""><figcaption></figcaption></figure>

6. その後、 **保存** 設定を保存し、Overview で **再起動する** App Service を。
7. SCEPman のホームページに Enterprise Edition のバブルが表示され、すべてのサービスが接続済みになっていることを確認してください。接続に問題がある場合、バブルは赤色になり、OCSP responder は動作しません。\
   ![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FGONIyIQKATKJtxPjcNcP%2Fimage.png?alt=media\&token=54f49db2-c593-4cf4-8749-83de54d5bcd2)
8. 調整 [Certificate Master RBAC](/ja/scepman-gou-cheng/rbac.md) 権限を調整して Certificate Master へのアクセス権を取得します。

## Storage Account テーブルをプログラムでクエリするには？

一部のユースケースでは、Storage Account テーブルを直接クエリする必要があります。これは手動で次を使用して行えます: [Azure Storage Explorer](https://azure.microsoft.com/en-us/features/storage-explorer/) またはプログラムで次を使用して [Azure Storage REST API](https://docs.microsoft.com/en-us/rest/api/storageservices/query-entities)。次を割り当ててください。 `Storage Table Data Reader` 使用しているアカウントにロールを割り当てます。以下は、今後30日以内に失効する Storage Account 内のすべての証明書を返すクエリの例です:

```powershell
$SCEPManStorageAccountName = "stgscepmanabc"  # ここに SCEPman の Storage Account 名を挿入してください
$expiresBefore = (Get-Date).AddDays(30).ToString("yyyy-MM-ddTHH:mm:ssZ")  # この日付より前に失効するすべての証明書を検索
$now = (Get-Date).ToString("yyyy-MM-ddTHH:mm:ssZ")                        # そして                   この日付より後に失効するもの

$certificatesJson = az storage entity query --table-name Certificates --account-name $SCEPManStorageAccountName --auth-mode login --filter "ExpirationDate lt datetime'$expiresBefore' and ExpirationDate gt datetime'$now' and Revoked eq false"
$certificates = $certificatesJson | ConvertFrom-Json

$certificates.items | Select-Object -Property Subject,Requester,ExpirationDate,FQDNs
```

Azure CLI は、クエリを実行するマシンにインストールされている必要があり、正しいアカウントとサブスクリプションにログオンしている必要があります。Azure Cloud Shell ではこれは自動的に満たされます。

もし [Private Endpoint ](/ja/azure-gou-cheng/private-endpoints.md)を Storage Account に使用している場合は、Storage Account の Networking ペインの例外リストにクライアントの IP アドレスを追加する必要があります。

## SCEPman のホームページへの公開アクセスを制限するには？

SCEPman のホームページには機密情報は含まれておらず、攻撃者が利用可能なデータを悪用することはできません。

ただし、ホームページを公開アクセスから隠したい場合は、次の設定を使って行えます [AppConfig:AnonymousHomePageAccess](/ja/scepman-gou-cheng/application-settings/basics.md#appconfig-anonymoushomepageaccess)

**再起動** を *SCEPman App Service* 設定を追加した後で。

## SCEPman Root CA Subject を変更するには？

{% hint style="warning" %}
CA Subject を変更すると、新しい Root CA を発行してすべてのユーザーに配布し、さらにすべてのクライアント/デバイス証明書を再配布する必要があります。古い証明書はその時点で無効になります。
{% endhint %}

1. SCEPman App Service > Environment Variables に移動します。
2. 設定の CN 値を変更します [`AppConfig:KeyVaultConfig:RootCertificateConfig:Subject`](/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-keyvault.md#appconfig-keyvaultconfig-rootcertificateconfig-subject) を希望するサブジェクト名に変更します。
3. 値を変更します [`AppConfig:KeyVaultConfig:RootCertificateConfig:CertificateName`](/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-keyvault.md#appconfig-keyvaultconfig-rootcertificateconfig-certificatename) を新しい Subject 名に変更します。\
   **注:** これは Azure Key Vault でのみ表示され、Azure Key Vault 内の CA 証明書への参照にすぎません。URL の一部であるため、英数字やダッシュなどの制限を含む名前の制約があります。 **スペースは使用できません。**
4. 両方の値を変更したら、保存して App Service を再起動します。
5. SCEPman のホームページに移動し、説明されているとおり新しい Root CA を発行します [こちら](/ja/scepman-nodepuroi/first-run-root-cert.md).
6. 新しい Root CA をダウンロードして MDM にアップロードし、その後クライアント証明書を再配布して新しい Subject を取得します。

## Intune で SCEP 証明書を表示するには？

Intune で SCEPman が発行した証明書を表示するには、Intune Monitor モジュールの certificates に移動します:

**Intune > Devices > Monitor > Certificates**

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-7547745551f5bf7a4aff117794d99e0f3d61dc8e%2F2022-07-26%2011_38_54-Window.png?alt=media)

そこには、デバイス名、ユーザー名、サムプリント、シリアル番号、サブジェクト名、発行日、有効期限、証明書ステータスなどの詳細を含む、発行済み証明書の一覧があります。

証明書と追加操作を含むより包括的な表示については、次の証明書を確認してください: [Certificate Master.](/ja/zheng-ming-shu-guan-li/certificate-master.md)

## SCEPman Root CA の有効期限は何年ですか？延長/更新できますか？

SCEPman Root CA の有効期限は 10 年です。期限切れになると、SCEPman を再デプロイする必要があり、現時点では有効期限を 10 年を超えて延長したり、既存の Root CA を更新したりする方法はありません。\
再デプロイには、新しい Root CA が将来その時点で関連するセキュリティ標準（鍵長、アルゴリズムなど）を満たせるという利点があります。


---

# 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/sono/faqs/general.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.
