> 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` フラグを使用して、スキャンを制限できます（例：SAST のみ）。
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.
