fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
312 stars 17 forks source link

"Key not valid for use in specific state" #75

Closed Brodieman closed 1 year ago

Brodieman commented 1 year ago

I have been using this for quite some time and love it (thank you!).

All of a sudden it was not working. I went to check some things and whenever I run any command (even qbt torrent list) I get the error "Key not valid for use in specified state.".

fedarovich commented 1 year ago

Hi,

Could you provide some additional information:

Additionally, could you run any command producing this error with parameter --print-stacktrace and post the output here

Brodieman commented 1 year ago

Windows 10 22H2 QBit 4.4.5 64bit QBitCLI 1.7.22220.1

Ran with that parameter and go the same result image image

fedarovich commented 1 year ago

Hm, it's more likely the issue with your system rather than with qbt. This error message is related to some issue with X509 certificates, but they are not used by qbt (except corresponding settings command).

You can try to do the following steps, it might help:

  1. Navigate to C:\Users\<username>\AppData\Roaming\Microsoft
  2. Rename the Crypto folder to CryptoOld
  3. Try running qbt again
Brodieman commented 1 year ago

I was not able to rename it but I was able to delete it. I did that and restarted, the folder was recreated and I get the same message. If you don't think it's with QBT CLI I will start looking around

Brodieman commented 1 year ago

Looks like you are right. SFC is showing errors. Everything else is working fine so I didn't look. Thanks and sorry.

Brodieman commented 7 months ago

I was finally able to figure this out. It WAS the CLI program but not a bug. I did "qbt network credentials clear" and then resetup everything and it works now