Page 1 of 1
Invalid certificates for https on web ui
Posted: Sat May 09, 2015 4:51 pm
by Kurisutine
I was following this guide:
https://github.com/qbittorrent/qBittorr ... rtificates
i got my key and my certificate but when i try to import it i always got "This is not a valid SSL certificate"
can some1 help me?
Re: Invalid certificates for https on web ui
Posted: Sat May 09, 2015 6:10 pm
by ciaobaby
Client version?
Browser?
Operating system?
Re: Invalid certificates for https on web ui
Posted: Sun May 10, 2015 7:01 pm
by sledgehammer_999
Seriously who writes those guides? And do they even test what they write?
You shouldn't lock your certificates/keys with "pass phrases". Otherwise the browser or qbittorrent (depending if it the client or server certificate) won't be able to open it and thus result in "invalid certs".
IIRC the private key shouldn't use a passphrase. qBittorrent as a server needs to know the key to validate the certs. It cannot ask you for passphrase each time a connection is happening.
Re: Invalid certificates for https on web ui
Posted: Sun May 10, 2015 7:02 pm
by sledgehammer_999
I forgot to tell you: I don't have a ready guide on how to make certs.
However this isn't specific to qbt. Google on how to make server/client certificates. There are a lot of guides out there.
If anyone wants to be helpful, please write a correct and tested guide in the wiki.
Re: Invalid certificates for https on web ui
Posted: Sun May 10, 2015 10:06 pm
by ciaobaby
You shouldn't lock your certificates/keys with "pass phrases".
The rider to this is, just in case anyone reads the thread/posts out of context. The
ONLY time you should use a 'pass phrase' for a certificate, is when you are creating one for SSH access as root (root shell), so the SSH client prompts for the certificate password rather needing the root password.
Re: Invalid certificates for https on web ui
Posted: Mon May 11, 2015 8:32 pm
by Kurisutine
Thanks!, I got my https with this single line of codeĀ
openssl req -new -x509 -nodes -out server.crt -keyout server.key