Fix SSL issues