Fix SSL errors killing the app

see
https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=7588950
and related

Change-Id: I3105d96e8ccdd8bb4448ae3ab467325d5a85926d