Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2022, 08:48 AM   #1
bubak
Connoisseur
bubak began at the beginning.
 
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.
bubak is offline   Reply With Quote
Old 03-28-2022, 10:03 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 03-28-2022, 11:59 AM   #3
bubak
Connoisseur
bubak began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
I see. Do you mean to change the set_client_cert_manager() call?
bubak is offline   Reply With Quote
Old 03-28-2022, 12:16 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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)
kovidgoyal is online now   Reply With Quote
Old 03-28-2022, 03:09 PM   #5
bubak
Connoisseur
bubak began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
Oh, thanks a lot, that's much simpler :-)
bubak is offline   Reply With Quote
Advert
Old 03-28-2022, 03:25 PM   #6
bubak
Connoisseur
bubak began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2010
Device: kindle voyage
Just a typo: it should be

kw['verify_ssl_certificates'] = False
bubak is offline   Reply With Quote
Reply

Tags
certificate


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:08 AM.


MobileRead.com is a privately owned, operated and funded community.