cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.92k stars 346 forks source link

"USBIP Test" certficiate not installed or properly located in certificate store #318

Open LeeHyunTae opened 1 year ago

LeeHyunTae commented 1 year ago

hello. I was looking for usb over network-open source to be used from window to window system

I found your app by chance

Is the readme.md file still valid for installing a below version...? PS D:\Git\usbip-win-0.3.6-dev> .\usbip.exe bind -b 1-156

I met a below error when installing usbip as ur guide(readme.md) usbip: error: "USBIP Test" certficiate not installed or properly located in certificate store could u check it....?

lemchen commented 1 year ago

same issue.

lemchen commented 1 year ago

https://docs.microsoft.com/en-us/windows/wsl/connect-usb

this may work, you should try.

Kogotoro commented 1 year ago

as README.md says:

Install USB/IP test certificate
Install driver/usbip_test.pfx (password: usbip)
Certificate should be installed into
"Trusted Root Certification Authority" in "Local Computer" (not current user) and
"Trusted Publishers" in "Local Computer" (not current user)

as variant using admin console from folder with usbip_test.pfx

CERTUTIL -f -user -p usbip -enterprise -importpfx root "usbip_test.pfx"
CERTUTIL -f -user -p usbip -enterprise -importpfx trustedpublisher "usbip_test.pfx"
bejaranoo commented 1 year ago

certutil -f -service -p usbip -importpfx Root "usbip_test.pfx" certutil -f -service -p usbip -importpfx TrustedPublisher "usbip_test.pfx"

Kogotoro commented 1 year ago

without -enterprise its install it in current user certificate store -enterprise = loacal computer certificate store (and require admin rights)

maybe its ok only for user... depend on how program search for it.

bejaranoo commented 1 year ago

image I've tested the command, and it install also on local machine you can check each store with Win + R, certlm.msc or certmgr.msc

certutil -f -service -p usbip -importpfx Root "usbip_test.pfx" certutil -f -service -p usbip -importpfx TrustedPublisher "usbip_test.pfx"

These are the flags explained image Source: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/certutil

Kogotoro commented 1 year ago

ok.. my bad, thx for clarification =)

Kogotoro commented 1 year ago

off top mm... http://certificate.fyicenter.com/685_Microsoft_CertUtil_Microsoft_certutil_-user_Certificate_St.html

no options "HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates"

option: -service "HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Services \ServiceName\SystemCertificates"

what will be difference? __ upd: manual install in to "Local Computer" (double click wizard...) put it into: "HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates"

and "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Services" empty

then

certutil -f -p usbip -importpfx Root "usbip_test.pfx"
certutil -f -p usbip -importpfx TrustedPublisher "usbip_test.pfx"

should be enough?

elvis-sun commented 1 year ago

my

@Kogotoro

ok.. my bad, thx for clarification =)

@Kogotoro "usbip.exe bind" is ok now?

LAIhy commented 3 months ago

CERTUTIL -f -user -p usbip -enterprise -importpfx root "usbip_test.pfx" CERTUTIL -f -user -p usbip -enterprise -importpfx trustedpublisher "usbip_test.pfx"

I use these two CMD, problem solved.