url_image_preview: Could not get head response for URL / SSL: CERTIFICATE_VERIFY_FAILED
As try to send an image from conversations to gajim url_image_preview does not seem to work. Just the image url is displayed without a preview. In the gajim log i got:
11/29/2016 14:40:57 (D) gajim.plugin_system.url_image_preview.http_functions Head request direct for URL: https://domain.tld:5281/upload/26de8548-e1a6-45ea-9dcb-b42731b9310e/174ad92d-e994-4bd0-9005-ae0c6474d13e.jpg#2ffec455209f41f7637e89a2aab684a4bb4007a71f448e1a10d54f0829ee24c85def6bdd658cd0c9cde65671e7a264af
11/29/2016 14:40:57 (D) gajim.c.ged notification
Args: (<common.connection_handlers_events.NotificationEvent object at 0x7f9d8908d650>,)
11/29/2016 14:40:57 (D) gajim.plugin_system.url_image_preview.http_functions Could not get head response for URL: https://domain.tld:5281/upload/26de8548-e1a6-45ea-9dcb-b42731b9310e/174ad92d-e994-4bd0-9005-ae0c6474d13e.jpg#2ffec455209f41f7637e89a2aab684a4bb4007a71f448e1a10d54f0829ee24c85def6bdd658cd0c9cde65671e7a264af
11/29/2016 14:40:57 (D) gajim.plugin_system.url_image_preview.http_functions <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
11/29/2016 14:40:57 (I) gajim.plugin_system.url_image_preview Failed to load HEAD Request for URL: 'https://domain.tld:5281/upload/26de8548-e1a6-45ea-9dcb-b42731b9310e/174ad92d-e994-4bd0-9005-ae0c6474d13e.jpg#2ffec455209f41f7637e89a2aab684a4bb4007a71f448e1a10d54f0829ee24c85def6bdd658cd0c9cde65671e7a264af'(see debug log for more info)
Its possible to access the url and the cert is displayed as valid in browser.
Env:
- latest conversations
- latest prosody
- latest gajim-nightly
- latest url_image_previe plugin 0.9.8.
- Letsencrypt
- Omemo