# 秘密鍵とCSRの作成

証明書を作成するために必要となる「秘密鍵」と「CSRファイル」を、次の手順で用意します。

1. Monaca クラウド IDE のメニューから、`設定 → iOS ビルド設定` を選択します
2. `秘密鍵とCSRの生成` をクリックします
3. 次の情報を入力します
   1. ユーザー名 ( 秘密鍵に付ける名前 )&#x20;
   2. メールアドレス ( Apple ID )&#x20;
   3. &#x20;国コード
4. 秘密鍵の作成後、その秘密鍵に紐づく「CSR ファイル」が同時に作成されます。
5. `エクスポート` ボタンをクリックして、 CSR ファイルをダウンロードします。

CSRファイルは、Apple Developer Program で証明書を発行するときに利用します。

<figure><img src="/files/tSUZaKKONZoZ0hdQWDhW" alt=""><figcaption></figcaption></figure>


---

# 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://ja.docs.monaca.io/build-app/build-for-ios/create-private-key-csr.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.
