0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VScodeの拡張機能で自前 SSL 証明書を信頼する方法

0
Posted at

課題

  • VSCode の AI コードアシスタント(Cline)で自宅の LLM サーバーに https 接続出来ない
    image.png

(接続設定について)
image.png

解決方法

NodeJS が追加で信頼する crt ファイルを指定する
その後 VSCode を再起動する

export NODE_EXTRA_CA_CERTS={オレオレ証明書(.crt)のパス}

~/.bashrcに記入して永続化すると手間がかからない

cat <<'EOF' >> ~/.bashrc                                                  
export NODE_EXTRA_CA_CERTS={オレオレ証明書(.crt)のパス}                         
EOF

※実行するたびに追記されるため、間違った場合は~/.bashrcファイルを直接編集すること

うまく動作しました!

image.png

appendix: バージョン等

OS ※Docker内

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

VSCode バージョン

$ code --version
1.148.0
661626d0e72f97806550790a98fb87116c9db825
x64

Cline バージョン

4.1.28

appendix: 環境構成

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?