Corrected SSL issues, moved certificate path, improved debugging