Set a file containing certificates for recognized SSL Certificate Authorities. 16/5716/2
authorJoone Hur <joone.hur@intel.com>
Fri, 12 Jul 2013 21:08:55 +0000 (14:08 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Mon, 15 Jul 2013 16:07:17 +0000 (09:07 -0700)
The file(/var/lib/ca-certificates/ca-bundle.pem) is used to refer to SSL CA
certificates in Tizen3.0 IVI, so we need to set SSL CA certificates in order
to connect websites over HTTPS. This allows to remove the following warning
messages occurred while accessing websites over HTTPS.

(process:1948): GLib-Net-WARNING **: The anchor file name for used with a GTlsFileDatabase must be an absolute path, and not relative:
(process:1948): GLib-CRITICAL **: g_file_get_contents: assertion `filename != NULL' failed

Tools/MiniBrowser/efl/main.c

index aa37739..d17f414 100755 (executable)
@@ -489,6 +489,9 @@ static Browser_Window *window_create(const char *url)
     app_data->webview = ewk_view_add(evas);
     ewk_view_theme_set(app_data->webview, THEME_DIR "/default.edj");
 
+    /* set a file containing certificates for recognized SSL Certificate Authorities */
+    ewk_context_certificate_file_set(ewk_context_default_get(), "/var/lib/ca-certificates/ca-bundle.pem");
+
 //    Ewk_Settings *settings = ewk_view_settings_get(app_data->webview);
 //    ewk_settings_file_access_from_file_urls_allowed_set(settings, EINA_TRUE);
 //    ewk_settings_enable_frame_flattening_set(settings, frame_flattening_enabled);