improved SSL debug logging