Skip to main content

API キーの作成

DigiCert ONE API 要求を安全に認証するための API キーを生成できます。作成される API キーには、DigiCert ONE 内のユーザープロファイルと同じユーザーロールが適用されます。API キーの作成は、以下のような場合に有用です。

Creating an API key may be useful to you if:

  • シンプルかつ統合しやすいキーベースの認証を使用したい場合。

  • 使用しているアプリケーションが証明書ベースの認証に対応していない場合。

  • 証明書の管理なしに API 要求を素早く認証したい場合。

  • 使用する API が、追加のセキュリティ対策として API キーとクライアント認証証明書の両方を必要とする場合。

注記

API 呼び出しを認証するには、要求ヘッダーに API キーを含めます。

事前準備

作業を始める前に、以下の点について検討しておくことをお勧めします。

  • API キーは生成後に再度取得することができないため、安全に保管してください。

  • 任意で、API キーの有効期限を設定できます。

    • 有効期限を設定すると、指定した日付でキーが無効になり、更新はできません。

    • 有効期限を設定しない場合、手動で失効させるまでキーは有効です。

  • API キーを公開リポジトリや共有されたコードベースで誤って公開しないように注意してください。

API キーの作成

  1. 右上のプロフィールアイコンから [ユーザーの詳細を表示]を選択します。

  2. Select Access credentials.

  3. Select Create API key.

  4. On the Create API key page, add the following information:

  5. In the Name field, enter a name for the API token. The name must be unique and can contain letters, numbers, spaces, dashes, and underscores.

  6. Optional: In the End date field, select a date from the calendar.

  7. On the API key created page, select Copy.

  8. Store your API key in a secure location

    重要

    The API token appears once. You can't access it after you select Close. If you ever lose the API token, you must delete the lost token and create a new one.

  9. Select Close.