> 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.
