Fix some issue with SSL