> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kdosukyan/local-code-scanning/troubleshooting-local-scanner-connectivity-issues.md).

# ローカルスキャナーの接続問題のトラブルシューティング

このガイドでは、企業プロキシ、カスタム SSL インスペクション、または制限されたネットワークの背後で Aikido Local Scanner を実行する方法を案内します。使用するタイミングと方法を扱います `--enable-proxy` および `--ca-bundle`、ホワイトリストに登録すべきドメインや、よくある証明書エラーの修正方法について説明します。

正しく動作するには、Local Scanner は HTTPS（ポート 443）経由で次のドメインにアクセスできる必要があります: `*.aikido.dev`

#### 使用する `--enable-proxy`

スキャナーは **しません** デフォルトではシステムプロキシを使用しません。すべての HTTPS トラフィックを企業プロキシ経由で送信するには、次の操作が必要です:

1. **プロキシサポートを有効にする** 次の `--enable-proxy` フラグ。
2. **プロキシ URL を設定する** 次を介して `HTTPS_PROXY` （または `https_proxy`）環境変数。

#### 使用する `--ca-bundle` （カスタム ルート CA）

プロキシまたはファイアウォールが **SSL インスペクション**を行う場合、通常はサーバー証明書が、 **社内/企業 CA**.

使用 **`--ca-bundle`** によって署名された証明書に置き換えられます。スキャナーに **PEM ファイル** を指定し、そのファイルに企業のルート CA 証明書（必要に応じて中間 CA も）を含めます。すると、スキャナーはプロキシ経由で接続する際にそれらの CA を信頼します。

1. **企業 CA 証明書を取得する** （例: IT チームから入手するか、マシンの信頼ストアからエクスポートします）。形式は **PEM** 形式である必要があります。
2. **それをスキャナーに渡す** 次を介して `--ca-bundle` または `AIKIDO_CA_BUNDLE` 環境変数として指定します。さらに、この値を `SSL_CERT_FILE` および `NODE_EXTRA_CA_CERTS` 環境変数として渡す必要がある場合があります。


---

# 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://help.aikido.dev/docs/docs-ja/kdosukyan/local-code-scanning/troubleshooting-local-scanner-connectivity-issues.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.
