Added logging to ssl callback, maybe fixes it.