Fix SSL verification settings. Add ability to set cert.