Revert "Added ugly hack for disabling curl certificate check"

This reverts commit 43599e0fab076a011bc25b185d7850e6cc7c28cc.