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

Powershell 中启动报错, CMD中启动正常 #617

Open
ZJRui opened this issue Nov 16, 2024 · 0 comments
Open

Powershell 中启动报错, CMD中启动正常 #617

ZJRui opened this issue Nov 16, 2024 · 0 comments

Comments

@ZJRui
Copy link

ZJRui commented Nov 16, 2024

Plese fill the template when you reporting a new issue, thanks!

Which platform are you running AnyProxy

Win11

The version of the AnyProxy

anyproxy -V
4.1.3

Your expected behavior of AnyProxy

Powershell 能够证书安装后 正常启动

The actual behavior of AnyProxy

The log of the error

现象

root证书已经安装到了windows的证书管理器中并信任了root证书.

windows的owershell中启动 anyproxy -i

anyproxy -i
Get-ChildItem : Cannot find drive. A drive with the name 'cert' does not exist.
At line:1 char:1

  • Get-ChildItem -path cert:\CurrentUser\Root
  •   + CategoryInfo          : ObjectNotFound: (cert:String) [Get-ChildItem], DriveNotFoundException
      + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    
    
    

[AnyProxy WARN][2024-11-16 08:46:08]: ROOT CA NOT INSTALLED YET
[AnyProxy Log][2024-11-16 08:46:08]: You can install the root CA manually.
[AnyProxy Log][2024-11-16 08:46:08]: The root CA file path is: C:\Users\40294.anyproxy\certificates\rootCA.crt
[AnyProxy Log][2024-11-16 08:46:08]: Http proxy started on port 8001
[AnyProxy Log][2024-11-16 08:46:08]: web interface started on port 8002
[AnyProxy Log][2024-11-16 08:46:22]: clearing cache file...

同样的启动命令在 cmd中启动没有问题
D:\tempFiles>anyproxy -i
[AnyProxy Log][2024-11-16 08:46:42]: Http proxy started on port 8001
[AnyProxy Log][2024-11-16 08:46:42]: web interface started on port 8002
[AnyProxy Log][2024-11-16 08:47:22]: received https CONNECT request mobile.events.data.microsoft.com
[AnyProxy Log][2024-11-16 08:47:22]: will forward to local https server
[AnyProxy Log][2024-11-16 08:47:22]: [internal https]proxy server for mobile.events.data.microsoft.com established
[AnyProxy ERROR][2024-11-16 08:47:22]: Error: write ECONNABORTED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant