07-09-2017, 11:43 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2010
Device: none
|
SSL: CERTIFICATE_VERIFY_FAILED Error
Hello,
I could use some help in fixing a "SSL: CERTIFICATE_VERIFY_FAILED" (see Details below) whenever I try to download metadata. I also receive an error whenever I try to access and/or update plugins. I am running windows 10 and am using windows defender antivirus and the windows firewall. I have deleted and remade the incoming and outgoing firewall rules for calibre and have uninstalled and reinstalled calibre with no success. Below are the details of the error msgs I receive. Downloading Metadata Details: calibre, version 3.3.0 ERROR: No matches found: <p>Failed to find any books that match your search. Try making the search <b>less specific</b>. For example, use only the author's last name and a single distinctive word from the title.<p>To see the full log, click "Show details". Running identify query with parameters: {u'title': u'The Swordswoman', u'authors': [u'Malcolm Archibald'], u'identifiers': {}, u'timeout': 30} Using plugins: Fantastic Fiction (1, 1, 6), FictionDB (1, 0, 10), Google (1, 0, 0), Amazon.com (1, 2, 0) The log from individual plugins is below Spoiler:
I consider myself a midlevel user w/no programming/language experience who is able to follow simple directions. I have seen where Kovid has stated that the above certificate error is on the users end but other than allowing incoming and outgoing firewall rules for calibre, I don't know what else I could do. Any/all help in resolving this issue will be deeply appreciated. Bengb Last edited by BetterRed; 07-09-2017 at 06:03 PM. |
07-09-2017, 12:33 PM | #2 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Given you are getting SSL certificate errors for all sites, I am guessing you have some kind of man-in-the-middle SSL proxy installed on your computer. Either it is malware or security software.
|
Advert | |
|
07-18-2017, 07:24 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
I'm getting the same error while trying to access the site from work, and in my case I know there's a HTTPS filtering firewall in the way.
I have the certificate for the firewall available so what I need to know is either 1/ How to install it so calibre picks it up. or 2/ How to turn off the certificate verification. I've looked at the various Python sites to try and work out what to do, but so far have failed to find an answer. Matt |
07-18-2017, 07:54 AM | #4 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Depends on the OS. calibre uses openssl which usually picks up the certificates installed in the OS. You can also force it to use a particualr set of certificates by setting the SSL_CERT_FILE or SSL_CERT_DIR environment variables.
|
07-18-2017, 09:22 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
It's on Windows, which is where I was having the problem.
I noticed there were already some certificates installed as part of Calibre and was a bit concerned in case I broke other functionality. |
Advert | |
|
07-18-2017, 09:56 AM | #6 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
Hi
I tried setting the environment variables as suggested, but that didn't work and reading other posts there seem to be bugs in the Windows python in this area. I finally managed to make this work by exporting the certificate from Firefox and appending it to the end of the C:\Program Files (x86)\Calibre2\app\resources\calibre-ebook-root-CA.crt file. Thanks for the help. Matt |
07-22-2017, 03:07 PM | #7 |
Enthusiast
Posts: 30
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
I'm getting this certificate failure against code.calibre-ebook.com when I try to upgrade any of several Linux machines.
wget reports "Unable to locally verify the issuer's authority." and Firefox says Code:
code.calibre-ebook.com uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. The server might not be sending the appropriate intermediate certificates. An additional root certificate may need to be imported Error code: SEC_ERROR_UNKNOWN_ISSUER |
07-22-2017, 03:19 PM | #8 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
code.calibre-ebook.com uses a private certificate, and that has always been the case. You want to verify it you have to use the certificate in the calibre installation's resources directory calibre-ebook-root-CA.crt
If you use some kind of MITM proxy then connections to it will always fail, unless you replace that file with your proxy's CA certificate, as MattC123 did. |
07-23-2017, 06:17 PM | #9 | |
Enthusiast
Posts: 30
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Quote:
But that doesn't answer the question of what changed to break the script. That checks the latest version via http://calibre-ebook.com/downloads/latest_version, which isn't secure, but redirects to code.calibre-ebook.com in secure mode. Has that redirection always been in place? If so, then the most likely culprit is a change in OpenSUSE's latest batch of updates. |
|
07-24-2017, 12:29 AM | #10 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The change is that the calibre-ebook.com server no longer allows http access. All http requests are redirected to https.
You want to check the latest version over http, use http://code.calibre-ebook.com/latest That is the correct URL for checking for the latest version anyway. |
07-24-2017, 11:56 AM | #11 | ||
Enthusiast
Posts: 30
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Quote:
Quote:
Thanks again. |
||
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aeon.co - Recipe download failed - CERTIFICATE_VERIFY_FAILED | emanu | Recipes | 13 | 07-16-2016 12:29 AM |
SSL Error Connecting on Mac OSX | JimmXinu | Calibre | 7 | 01-30-2016 12:17 PM |
IRC SSL cert | jgoguen | Feedback | 0 | 08-03-2015 12:38 PM |
Does CC support SSL connection? | coleman | Calibre Companion | 7 | 04-03-2014 11:31 PM |