+#if defined(__APPLE__) || defined(__WIN32__)
+
+ SetConnectionObject(conn);
+
+#else
+
+ if (ServerAccount != ""){
+
+ wxString ServerCertFilename = GetAccountDir(ServerAccount, TRUE);
+
+ if (wxFile::Exists(ServerCertFilename) == TRUE){
+
+ curl_easy_setopt(conn, CURLOPT_SSL_VERIFYPEER, 1);
+ curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, 2);
+ curl_easy_setopt(conn, CURLOPT_CAINFO, (const char*)ServerCertFilename.mb_str(wxConvUTF8));
+
+ }
+
+ }
+
+#endif
+