Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议:在 ReadMe 中添加 WSL 中的使用方法 #73

Open
seven-mile opened this issue Jul 1, 2021 · 2 comments
Open

建议:在 ReadMe 中添加 WSL 中的使用方法 #73

seven-mile opened this issue Jul 1, 2021 · 2 comments
Labels
Documentation Improvements or additions to documentation 其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。 根证书问题 根证书相关问题

Comments

@seven-mile
Copy link

由于证书缺失,开启 SideCar 后 WSL2 中的 HTTPS 连接都会变为不受信状态,导致例如 git 无法连接到 remote 做任何操作。(WSL1不太确定会不会有这个症状)

解决方法很直接,把证书导入到 WSL 即可,但稍微需要一些繁琐的操作

也就是

  • DevSideCar安装根证书 弹出的证书属性窗口中导出证书(详细信息选项卡 -> 复制到文件)
  • 导出时选择 Base64 那个格式(第二项)
  • 将导出的证书(.cer后缀)复制到 WSL /usr/local/share/ca-certificates 中,并将后缀名改为 .crt
  • 运行 sudo update-ca-certificates
@ShelpAm
Copy link

ShelpAm commented Nov 25, 2023

相见恨晚!

@ShelpAm
Copy link

ShelpAm commented Nov 25, 2023

  • 将导出的证书(.cer后缀)复制到 WSL /usr/local/share/ca-certificates 中,并将后缀名改为 .crt
  • 运行 sudo update-ca-certificates

这两个步骤之间还应该用vi等软件将以.crt为后缀的文件中的行尾的\r删去。

@wangliang181230 wangliang181230 added 可参考的 根证书问题 根证书相关问题 其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。 Documentation Improvements or additions to documentation and removed 其他可参考 labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation 其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。 根证书问题 根证书相关问题
Projects
None yet
Development

No branches or pull requests

3 participants