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