![]() |
#1 |
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
|
Accepting expired certificate
Hi all,
is there a way to tell a recipe that it should not make an error when do_handshake() returns ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123) ? I've looked in the forum but could not find a solution (on Linux, no certmgr there). I'd expect some API parameter where I would be able to say that ssl certifcate errors are to be ignored. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Implement the get_browser() function in yoru recipe and customize the browser however you like, including telling it not to verify ssl certificates.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
|
I see. Do you mean to change the set_client_cert_manager() call?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
def get_browser(self, *a, **kw): kw['verify_ssl_certificate'] = False return super().get_browser(*a, **kw) |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
|
Oh, thanks a lot, that's much simpler :-)
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
|
Just a typo: it should be
kw['verify_ssl_certificates'] = False |
![]() |
![]() |
![]() |
Tags |
certificate |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
IRC SSL certificate has expired - 27th March 2019 | trcm | Feedback | 0 | 03-30-2019 03:58 PM |
Chat widget - security certificate expired | meeera | Feedback | 1 | 07-15-2013 01:48 PM |
Expired * Toshiba Thrive 10.1" refurb on sale today WOOT $289+$5s/h * Expired | Tabatha | Android Devices | 11 | 01-05-2012 11:55 AM |
irex website SSL Certificate expired 8th may | kleykenb | iRex | 1 | 05-18-2011 07:29 AM |